Skip to content

Commit

Permalink
fix(renderer): 修复instance parent指向不正确
Browse files Browse the repository at this point in the history
  • Loading branch information
王建魁(wangjiankui) committed Jun 13, 2022
1 parent fdba1af commit b71b00e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime-core/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ function baseCreateRenderer(

// 创建 vnode,并保存在组件实例上
const subTree = (instance.subTree = renderComponentRoot(instance))
patch(null, subTree, container)
patch(null, subTree, container, instance)

// mounted
if (m) {
Expand Down

0 comments on commit b71b00e

Please sign in to comment.