From 09fc65f4e38ee230a799330bd67f039c668d5b4b Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Thu, 27 Jun 2024 20:16:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=A4=9A=E4=B8=AAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/App.vue | 4 +-- ui/src/views/application-workflow/index.vue | 10 ++++-- ui/src/workflow/common/NodeCascader.vue | 33 ++++++++++++++++++- ui/src/workflow/common/NodeContainer.vue | 10 +++--- ui/src/workflow/common/app-node.ts | 6 ++++ ui/src/workflow/common/data.ts | 8 ++++- ui/src/workflow/nodes/ai-chat-node/index.vue | 4 ++- ui/src/workflow/nodes/base-node/index.vue | 4 ++- .../workflow/nodes/condition-node/index.vue | 11 +++++-- ui/src/workflow/nodes/question-node/index.vue | 4 ++- ui/src/workflow/nodes/reply-node/index.vue | 18 ++++++++-- .../nodes/search-dataset-node/index.vue | 10 ++++-- 12 files changed, 99 insertions(+), 23 deletions(-) diff --git a/ui/src/App.vue b/ui/src/App.vue index d59d59725..3ed4b37bf 100644 --- a/ui/src/App.vue +++ b/ui/src/App.vue @@ -4,6 +4,4 @@ - + diff --git a/ui/src/views/application-workflow/index.vue b/ui/src/views/application-workflow/index.vue index ca4bf1703..aee004d0e 100644 --- a/ui/src/views/application-workflow/index.vue +++ b/ui/src/views/application-workflow/index.vue @@ -150,8 +150,14 @@ const clickShowDebug = () => { } }) .catch((res: any) => { - const keys = Object.keys(res) - MsgError(res[keys[0]]?.[0]?.message) + const node = res.node + const err_message = res.errMessage + if (typeof err_message == 'string') { + MsgError(res.node.properties?.stepName + '节点 ' + err_message) + } else { + const keys = Object.keys(err_message) + MsgError(node.properties?.stepName + '节点 ' + err_message[keys[0]]?.[0]?.message) + } }) } function clickoutsideDebug() { diff --git a/ui/src/workflow/common/NodeCascader.vue b/ui/src/workflow/common/NodeCascader.vue index c67977bbd..d933f3fff 100644 --- a/ui/src/workflow/common/NodeCascader.vue +++ b/ui/src/workflow/common/NodeCascader.vue @@ -4,6 +4,7 @@ :options="options" @visible-change="visibleChange" v-bind="$attrs" + v-model="data" separator=" > " >