Przeglądaj źródła

wip: fix e2e test

daiwei 1 rok temu
rodzic
commit
fc2f9f873e

+ 1 - 1
packages/runtime-vapor/src/block.ts

@@ -198,7 +198,7 @@ export function insert(
         performTransitionEnter(
           block,
           (block as TransitionBlock).$transition as TransitionHooks,
-          () => parent.insertBefore(block, anchor),
+          () => parent.insertBefore(block, anchor as Node),
           parentSuspense,
         )
       } else {

+ 1 - 1
packages/runtime-vapor/src/vdomInterop.ts

@@ -259,7 +259,7 @@ function createVDOMComponent(
     internals.umt(vnode.component!, null, !!parentNode)
   }
 
-  vnode.scopeId = parentInstance.type.__scopeId!
+  vnode.scopeId = parentInstance && parentInstance.type.__scopeId!
 
   frag.insert = (parentNode, anchor, transition) => {
     const prev = currentInstance