diff --git a/src/components/composer/card/OutputEditor.vue b/src/components/composer/card/OutputEditor.vue index 07b1e9e..9f204f8 100644 --- a/src/components/composer/card/OutputEditor.vue +++ b/src/components/composer/card/OutputEditor.vue @@ -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; });