Skip to content

Commit 43210a2

Browse files
authored
fix: duplicate root instances (#711)
1 parent 5e6c310 commit 43210a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ function scan () {
161161
}
162162
let instance = node.__vue__
163163
if (instance) {
164-
instance = instance.$root
164+
if (rootInstances.indexOf(instance.$root) === -1) {
165+
instance = instance.$root
166+
}
165167
if (instance._isFragment) {
166168
inFragment = true
167169
currentFragment = instance

0 commit comments

Comments
 (0)