From 5c4318d363934d3b70c456ef7e7d09d034c676a4 Mon Sep 17 00:00:00 2001 From: v_xugzhou <941071842@qq.com> Date: Fri, 22 Sep 2023 11:05:49 +0800 Subject: [PATCH] =?UTF-8?q?optimization:=20=E6=89=B9=E9=87=8F=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=A1=B5=E5=8F=98=E9=87=8F=E5=8F=96=E6=B6=88=E5=8B=BE?= =?UTF-8?q?=E9=80=89=E9=80=BB=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/template/TemplateEdit/BatchUpdateDialog.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/desktop/src/pages/template/TemplateEdit/BatchUpdateDialog.vue b/frontend/desktop/src/pages/template/TemplateEdit/BatchUpdateDialog.vue index 5e4ea872a6..59377b9caf 100644 --- a/frontend/desktop/src/pages/template/TemplateEdit/BatchUpdateDialog.vue +++ b/frontend/desktop/src/pages/template/TemplateEdit/BatchUpdateDialog.vue @@ -472,7 +472,7 @@ const { activities, conditions, constants } = this.variableCited[key] const citedNum = activities.length + conditions.length + constants.length if (citedNum <= 1) { - this.isCancelGloVarDialogShow = true + this.varReferenceDialogClick(true) } else { if (sourceInfo[id].length <= 1) { this.$delete(sourceInfo, id) @@ -486,6 +486,9 @@ }) sourceInfo[id].splice(atomIndex, 1) } + if (Object.keys(sourceInfo).length === 0) { + this.$delete(this.localConstants, key) + } const index = this.subflowForms.findIndex(item => item.id === id) const refDoms = source === 'input' ? this.$refs.inputParams : this.$refs.outputParams refDoms && refDoms[index].setFormData()