mirror of
https://gitee.com/vuejs/vue.git
synced 2024-11-30 02:57:43 +08:00
fix ready hook
This commit is contained in:
parent
4d508dcbfa
commit
849e9ba364
@ -30,7 +30,7 @@ function init (vnode) {
|
||||
}
|
||||
|
||||
function insert (vnode) {
|
||||
callHook(vnode.child, 'ready')
|
||||
callHook(vnode.data.child, 'ready')
|
||||
}
|
||||
|
||||
function prepatch (oldVnode, vnode) {
|
||||
|
@ -64,6 +64,7 @@ export default function createPatchFunction (modules, api) {
|
||||
if (isDef(data)) {
|
||||
if (isDef(i = data.hook) && isDef(i = i.init)) i(vnode)
|
||||
if (isDef(i = data.child)) {
|
||||
insertedVnodeQueue.push(vnode)
|
||||
return i._vnode.elm
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user