Skip to content

Commit 3f2d24e

Browse files
committed
Merge branch 'component-lifestyle' of https://github.com/zysndy/mpvue into component-lifestyle
2 parents 29cee1a + 6ba1b0c commit 3f2d24e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/platforms/mp/join-code-in-build.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,8 @@ exports.mpLifecycleHooks = `'onLaunch',
2323
'onReachBottom',
2424
'onShareAppMessage',
2525
'onPageScroll',
26-
'onTabItemTap'`
26+
'onTabItemTap',
27+
'attached',
28+
'ready',
29+
'moved',
30+
'detached'`

src/platforms/mp/runtime/lifecycle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export function initMP (mpType, next) {
172172
ready () {
173173
mp.status = 'ready'
174174

175-
callHook(rootVueVM, 'onReady')
175+
callHook(rootVueVM, 'ready')
176176
next()
177177

178178
// 只有页面需要 setData

0 commit comments

Comments
 (0)