diff --git a/src/views/perms/AssetPermission/components/AccountFormatter.vue b/src/views/perms/AssetPermission/components/AccountFormatter.vue index 3907f3399..755b85016 100644 --- a/src/views/perms/AssetPermission/components/AccountFormatter.vue +++ b/src/views/perms/AssetPermission/components/AccountFormatter.vue @@ -88,14 +88,14 @@ export default { if (item.value === this.SPEC) { this.showSpecAccounts = checked } else if (item.value === this.ALL) { - this.showSpecAccounts = !checked + this.showSpecAccounts = checked ? false : checked } - - if (this.showSpecAccounts) { - this.choicesSelected = this.choicesSelected.filter(i => i !== this.ALL) - } else { + if (item.value === this.ALL) { this.choicesSelected = this.choicesSelected.filter(i => i !== this.SPEC) } + if (item.value === this.SPEC) { + this.choicesSelected = this.choicesSelected.filter(i => i !== this.ALL) + } this.outputValue() }, handleTagChange(val) {