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 @@