Evan You 5 лет назад
Родитель
Сommit
f49f95344b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/runtime-core/src/componentRenderUtils.ts

+ 1 - 1
packages/runtime-core/src/componentRenderUtils.ts

@@ -175,7 +175,7 @@ export function renderComponentRoot(
       treeOwnerId && treeOwnerId !== scopeId ? treeOwnerId + '-s' : null
     if (needScopeId || slotScopeId) {
       const extras: Data = {}
-      if (needScopeId) extras[scopeId] = ''
+      if (needScopeId) extras[scopeId!] = ''
       if (slotScopeId) extras[slotScopeId] = ''
       root = cloneVNode(root, extras)
     }