From 8311f2a6c506fc787148b6dc782a8f8f0c63159b Mon Sep 17 00:00:00 2001 From: zhanghao <774378400@qq.com> Date: Wed, 4 Mar 2026 15:04:07 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=8A=82=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/flow/config.js | 2 +- src/views/flow/nodes/function/codeNode.vue | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/flow/config.js b/src/views/flow/config.js index fe771b1..9e5e4f7 100644 --- a/src/views/flow/config.js +++ b/src/views/flow/config.js @@ -306,7 +306,7 @@ export const collapseList = [ { name: "input", type: "input", input: "", required: true } ], outputType: 'json', - outputParams: [{ name: 'result', type: 'Object', children: [], desc: 'HTTP请求结果'}] + outputParams: [] } ], }, diff --git a/src/views/flow/nodes/function/codeNode.vue b/src/views/flow/nodes/function/codeNode.vue index c357af6..0b97aab 100644 --- a/src/views/flow/nodes/function/codeNode.vue +++ b/src/views/flow/nodes/function/codeNode.vue @@ -68,7 +68,7 @@ :disabled="flowStore.disableForm" >
- + { if (props.properties.nodeParams && props.properties.nodeParams.length > 0) { - formData.nodeParams = props.properties.nodeParams.filter(item => item.name !== 'code'); + // .filter(item => item.name !== 'code') + formData.nodeParams = props.properties.nodeParams; const codeParams = props.properties.nodeParams.find(item => item.name === 'code') if (codeParams) { nextTick(() => {