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()