From 265870eff76aab004ef257a44e09ded3a81eb667 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Fri, 17 Feb 2023 20:49:43 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AssetPermission/components/AccountFormatter.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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) {