From 675a2d00aa35794d36ed50bc7b8bd98ce08fe5af Mon Sep 17 00:00:00 2001 From: Ethan-Zhang Date: Mon, 28 Jul 2025 13:40:16 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E5=8F=98=E9=87=8F=E4=BC=A0=E9=80=92?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E7=B1=BB=E5=9E=8Bbug=20&&=20StartNode?= =?UTF-8?q?=E9=87=8D=E6=9E=84=20&&=20=E5=B7=A5=E4=BD=9C=E6=B5=81=E8=B0=83?= =?UTF-8?q?=E9=80=9A=E7=9B=B8=E5=85=B3debug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/variable.js | 1 + src/components/SafeStartNodeEditor.vue | 436 ------------------ src/components/StartNodeEditor.vue | 225 ++++++--- src/components/StartNodeVariableManager.vue | 94 +++- src/components/VariableChooser.vue | 2 +- src/views/createapp/components/workFlow.vue | 10 + .../workFlowConfig/ChoiceBranchDrawer.vue | 18 +- .../workFlowConfig/CodeNodeDrawer.vue | 2 +- .../workFlowConfig/SimpleCodeNodeDrawer.vue | 14 +- .../VariableBasedStartNodeDrawer.vue | 61 ++- .../components/workFlowConfig/useDnD.js | 14 + 11 files changed, 353 insertions(+), 524 deletions(-) delete mode 100644 src/components/SafeStartNodeEditor.vue diff --git a/src/api/variable.js b/src/api/variable.js index 37dd80e8..42ea4a72 100644 --- a/src/api/variable.js +++ b/src/api/variable.js @@ -63,6 +63,7 @@ export async function getVariable(params) { * @param {string} params.scope 变量作用域 (user|env|system|conversation) * @param {string} [params.flow_id] 流程ID(环境级和对话级变量必需) * @param {string} [params.conversation_id] 对话ID(系统级和对话级变量必需) + * @param {string} [params.current_step_id] 当前步骤ID(用于获取前置节点变量,仅对话变量有效) */ export async function listVariables(params = {}) { const [error, response] = await get(`${BASE_URL}/list`, params) diff --git a/src/components/SafeStartNodeEditor.vue b/src/components/SafeStartNodeEditor.vue deleted file mode 100644 index f45c2d8a..00000000 --- a/src/components/SafeStartNodeEditor.vue +++ /dev/null @@ -1,436 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/components/StartNodeEditor.vue b/src/components/StartNodeEditor.vue index b1d7db1c..f45c2d8a 100644 --- a/src/components/StartNodeEditor.vue +++ b/src/components/StartNodeEditor.vue @@ -1,5 +1,5 @@