From 1eace874636bdd694091f57b4c2e8b8a0310aab1 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Mon, 15 Jul 2024 15:26:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E5=99=A8=E5=88=A0=E9=99=A4=E5=85=B6=E4=B8=AD=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E5=90=8E=EF=BC=8C=E5=89=8D=E7=AB=AF=E5=BA=8F?= =?UTF-8?q?=E5=8F=B7=E6=9C=AA=E6=9B=B4=E6=96=B0=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/1Panel-dev/MaxKB/issues/753 --- ui/src/workflow/nodes/condition-node/index.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/src/workflow/nodes/condition-node/index.vue b/ui/src/workflow/nodes/condition-node/index.vue index 4d513a7f2..8bf5b18e6 100644 --- a/ui/src/workflow/nodes/condition-node/index.vue +++ b/ui/src/workflow/nodes/condition-node/index.vue @@ -277,6 +277,12 @@ function deleteCondition(index: number, cIndex: number) { .map((item: any) => item.id) ) refreshBranchAnchor(list, false) + + list.forEach((item: any, index: number) => { + if (item.type === 'ELSE IF ' + (index + 1)) { + item.type = 'ELSE IF ' + index + } + }) } set(props.nodeModel.properties.node_data, 'branch', list) }