mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-20 19:20:37 +08:00
重构 OutputEditor:提取可重用组件并改进变量验证
This commit is contained in:
@@ -10,6 +10,9 @@ export function generateCode(flow) {
|
||||
return `${varName} = ${varValue};`;
|
||||
}
|
||||
usedVarNames[funcName].push(varName);
|
||||
if (!varValue) {
|
||||
return `let ${varName};`;
|
||||
}
|
||||
return `let ${varName} = ${varValue};`;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user