From 85845b0d383d25e4262a63c97d47189a254b6f2f Mon Sep 17 00:00:00 2001 From: 2910410219 <2910410219@qq.com> Date: Wed, 10 Jun 2026 13:07:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=A7=E8=A1=8C=E4=BC=A0=E9=80=92=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/settings/creation/index.vue | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/views/settings/creation/index.vue b/src/views/settings/creation/index.vue index f29126e..036f18c 100644 --- a/src/views/settings/creation/index.vue +++ b/src/views/settings/creation/index.vue @@ -2117,13 +2117,10 @@ const sendMessage = async () => { // 2. 构建节点输入参数 const nodeInputParams = currentWorkflowForCreation.value.nodeInputParams?.map((node: any) => { - const nodeParam: any = { - id: node.id, - nodeCode: node.nodeCode, - name: node.name, - }; + // 先展开原始节点的所有字段(保留 promptContent、isSaveFile、outputConfig、modelOutputFields 等) + const nodeParam: any = { ...node }; - // 添加表单配置和值 + // 用用户填写的值覆盖 formConfig if (node.formConfig && Array.isArray(node.formConfig)) { nodeParam.formConfig = node.formConfig.map((field: any) => { // HTTP body: 将创作模式填写值回写到 body 的 showInForm 子字段 @@ -2165,10 +2162,9 @@ const sendMessage = async () => { }); } - // 添加其他配置 + // 用用户填写的值覆盖 config if (node.config) { nodeParam.config = { ...node.config }; - // 更新 config 中的值 Object.keys(node.config).forEach((key) => { const fieldKey = `${node.id}_${key}`; if (creationFormValues[fieldKey] !== undefined) { @@ -2177,11 +2173,6 @@ const sendMessage = async () => { }); } - // 添加其他字段 - if (node.inputSource) nodeParam.inputSource = node.inputSource; - if (node.modelConfig) nodeParam.modelConfig = node.modelConfig; - if (node.skillName) nodeParam.skillName = node.skillName; - return nodeParam; }) || [];