修复输出变量名在某些情况下无法修改的bug

This commit is contained in:
fofolee
2025-03-15 19:40:59 +08:00
parent 504121166d
commit 6241ed18b5

View File

@@ -270,7 +270,7 @@ export default defineComponent({
if (this.currentOutputs) {
const flatVars = {};
Object.entries(this.outputVars).forEach(([path, value]) => {
Object.entries(this.outputVars || {}).forEach(([path, value]) => {
if (!value) return; // 跳过空值
flatVars[path] = value;
});