From: daiwei Date: Fri, 24 Jan 2025 02:38:23 +0000 (+0800) Subject: chore: minor tweaks X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c17a3713fb8df722aea2c62d42faaf06c7492e9;p=thirdparty%2Fvuejs%2Fcore.git chore: minor tweaks --- diff --git a/packages/compiler-core/src/transforms/vSlot.ts b/packages/compiler-core/src/transforms/vSlot.ts index a58d6721d7..4ebb24ba05 100644 --- a/packages/compiler-core/src/transforms/vSlot.ts +++ b/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)) ||