Browse Source

chore: minor tweaks

daiwei 1 năm trước cách đây
mục cha
commit
6c17a3713f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/compiler-core/src/transforms/vSlot.ts

+ 1 - 1
packages/compiler-core/src/transforms/vSlot.ts

@@ -413,7 +413,7 @@ function hasForwardedSlots(children: TemplateChildNode[]): boolean {
         if (hasForwardedSlots(child.branches)) return true
         break
       case NodeTypes.SKIP:
-        const consequent = child.consequent
+        const { consequent } = child
         if (
           (consequent.type === NodeTypes.IF_BRANCH &&
             hasForwardedSlots(consequent.children)) ||