Skip to content

Commit 8dd0ef2

Browse files
committed
fix: subTree is null
1 parent 1b0af29 commit 8dd0ef2

File tree

1 file changed

+1
-0
lines changed
  • packages/app-backend-vue3/src/components

1 file changed

+1
-0
lines changed

packages/app-backend-vue3/src/components/el.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export function getRootElementsFromComponentInstance (instance) {
99
if (isFragment(instance)) {
1010
return getFragmentRootElements(instance.subTree)
1111
}
12+
if (!instance.subTree) return []
1213
return [instance.subTree.el]
1314
}
1415

0 commit comments

Comments
 (0)