From 6561522b98f0e273b696938fc77fc388cd2289cc Mon Sep 17 00:00:00 2001 From: daiwei Date: Fri, 20 Dec 2024 17:38:04 +0800 Subject: [PATCH] chore: minor tweaks --- packages/compiler-vapor/src/generators/expression.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler-vapor/src/generators/expression.ts b/packages/compiler-vapor/src/generators/expression.ts index bf634c80594..a9075bcdf91 100644 --- a/packages/compiler-vapor/src/generators/expression.ts +++ b/packages/compiler-vapor/src/generators/expression.ts @@ -310,7 +310,7 @@ function processRepeatedVariables( for (const [name, exps] of variableToExpMap) { if (seenVariable[name] > 1 && exps.size > 0) { const isIdentifier = seenIdentifier.has(name) - const varName = genVarName(name) + const varName = isIdentifier ? name : genVarName(name) if (!declarations.some(d => d.name === varName)) { declarations.push({ name: varName,