From 89546bbd77c9346b07d9cf7e3817cc3c7290cb93 Mon Sep 17 00:00:00 2001 From: zhaochencheng Date: Fri, 30 Dec 2022 14:32:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=93=81=E7=89=8C=E7=AE=A1=E7=90=86=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=8C=E4=BF=AE=E5=A4=8DDictRadio=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DictRadio/index.vue | 8 +++----- src/views/pms/brand/index.vue | 28 +++++++++++----------------- 2 files changed, 14 insertions(+), 22 deletions(-) diff --git a/src/components/DictRadio/index.vue b/src/components/DictRadio/index.vue index de0bd8a..a29ee55 100644 --- a/src/components/DictRadio/index.vue +++ b/src/components/DictRadio/index.vue @@ -31,13 +31,11 @@ export default { } }, dictList(){ - if(this.showAll === "all"){ - let list = this.radioData; + let list = [...this.radioData]; + if(this.showAll === "all"){ list.splice(0, 0, {label:"全部"}) - return list - }else{ - return this.radioData } + return list } }, methods: { diff --git a/src/views/pms/brand/index.vue b/src/views/pms/brand/index.vue index fdfd4d6..565a099 100644 --- a/src/views/pms/brand/index.vue +++ b/src/views/pms/brand/index.vue @@ -1,6 +1,10 @@