浏览代码

chore: fix types

Evan You 5 年之前
父节点
当前提交
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
       treeOwnerId && treeOwnerId !== scopeId ? treeOwnerId + '-s' : null
     if (needScopeId || slotScopeId) {
     if (needScopeId || slotScopeId) {
       const extras: Data = {}
       const extras: Data = {}
-      if (needScopeId) extras[scopeId] = ''
+      if (needScopeId) extras[scopeId!] = ''
       if (slotScopeId) extras[slotScopeId] = ''
       if (slotScopeId) extras[slotScopeId] = ''
       root = cloneVNode(root, extras)
       root = cloneVNode(root, extras)
     }
     }