From 2ffe322697aba1537ba20225184a04e6323bc4cc Mon Sep 17 00:00:00 2001 From: Ethan-Zhang Date: Sat, 2 Aug 2025 06:20:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?Fix:=20=E4=BF=AE=E5=A4=8D=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E8=8A=82=E7=82=B9input=E5=92=8Coutput=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=A2=AB=E9=94=99=E8=AF=AF=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20&&=20=E5=88=A0=E9=99=A4=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/createapp/components/workFlowConfig/useDnD.js | 4 ++-- .../createapp/components/workFlowConfig/workFlowDialog.vue | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/createapp/components/workFlowConfig/useDnD.js b/src/views/createapp/components/workFlowConfig/useDnD.js index 5ec7aaa..aa9851d 100644 --- a/src/views/createapp/components/workFlowConfig/useDnD.js +++ b/src/views/createapp/components/workFlowConfig/useDnD.js @@ -150,8 +150,8 @@ export default function useDragAndDrop() { output_parameters: {} }; } else { - // 对于所有其他节点类型(LLM、RAG、API、SQL等),确保parameters结构正确且内容为空 - cleanNodeData.parameters = { + // 对于所有其他节点类型(LLM、RAG、API、SQL等),保留API返回的原始parameters或使用空结构 + cleanNodeData.parameters = cleanNodeData.parameters || { input_parameters: {}, output_parameters: {} }; diff --git a/src/views/createapp/components/workFlowConfig/workFlowDialog.vue b/src/views/createapp/components/workFlowConfig/workFlowDialog.vue index c600411..c69cb3b 100644 --- a/src/views/createapp/components/workFlowConfig/workFlowDialog.vue +++ b/src/views/createapp/components/workFlowConfig/workFlowDialog.vue @@ -113,7 +113,6 @@ const handleSubmit = (formEl: FormInstance | undefined) => { const appId = route.query?.appId; // 创建使用生成的flowId const flowId = uuidv4(); - console.log('flowId', flowId, 'here'); // 调用接口新建工作流 api .createOrUpdateFlowTopology( -- Gitee From 42c62b234cadf2e189dcfff224522786bd1b4d78 Mon Sep 17 00:00:00 2001 From: Ethan-Zhang Date: Sat, 2 Aug 2025 06:22:00 +0800 Subject: [PATCH 2/2] =?UTF-8?q?Feat:=20=E5=8F=98=E9=87=8F=E6=8F=92?= =?UTF-8?q?=E5=85=A5=E9=80=89=E6=8B=A9=E8=8F=9C=E5=8D=95=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=AA=A8=E6=9E=B6=E6=A0=B7=E5=BC=8F=E5=8C=B9=E9=85=8D=E9=9D=9E?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E6=95=B0=E6=8D=AE=E8=AF=BB=E5=8F=96=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E9=95=BF=E7=9A=84Loading=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/VariableInsertDropdown.vue | 273 +++++++++++++++++--- src/views/createapp/components/workFlow.vue | 5 +- 2 files changed, 244 insertions(+), 34 deletions(-) diff --git a/src/components/VariableInsertDropdown.vue b/src/components/VariableInsertDropdown.vue index 7686027..ecbb8f7 100644 --- a/src/components/VariableInsertDropdown.vue +++ b/src/components/VariableInsertDropdown.vue @@ -16,49 +16,90 @@