bugfix: 修改代码节点

This commit is contained in:
zhanghao 2026-03-04 15:04:07 +08:00
parent 101e100c75
commit 8311f2a6c5
2 changed files with 4 additions and 3 deletions

View File

@ -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: []
}
],
},

View File

@ -68,7 +68,7 @@
:disabled="flowStore.disableForm"
>
<div v-for="(property, index) in formData.nodeParams" :key="index">
<el-row>
<el-row v-if="property.name !== 'code'">
<el-form-item
:label="index === 0 ? '参数名' : ''"
:prop="`nodeParams.${index}.name`"
@ -412,7 +412,8 @@ watch(
() => {
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(() => {