瀏覽代碼

feat(devtools): send instance

Guillaume Chau 5 年之前
父節點
當前提交
3626ff07fe
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      packages/runtime-core/src/devtools.ts

+ 2 - 1
packages/runtime-core/src/devtools.ts

@@ -67,7 +67,8 @@ function createDevtoolsComponentHook(hook: DevtoolsHooks) {
       hook,
       component.appContext.app,
       component.uid,
-      component.parent ? component.parent.uid : undefined
+      component.parent ? component.parent.uid : undefined,
+      component
     )
   }
 }