Skip to content

Commit

Permalink
optimization: 批量更新页变量取消勾选逻辑优化
Browse files Browse the repository at this point in the history
  • Loading branch information
ywywZhou authored and luofann committed Sep 22, 2023
1 parent 5240520 commit 5c4318d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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()
Expand Down

0 comments on commit 5c4318d

Please sign in to comment.