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(() => {