Parcourir la source

广播电台 城市筛选中添加中央台

DESKTOP-SVI9JE1\muzen il y a 1 an
Parent
commit
6ed0745569
1 fichiers modifiés avec 9 ajouts et 0 suppressions
  1. 9 0
      src/mixin/index.js

+ 9 - 0
src/mixin/index.js

@@ -630,6 +630,15 @@ const mapMixin = {
       return new Promise((reslove, reject) => {
         mapList().then(res => {
           if (res.code === 0) {
+            if(this.$route.path.search("/music/radio") !== -1) {
+              res.data.unshift({
+                adcode: "1",
+                childList: [],
+                citycode: "",
+                id: "1",
+                name: "中央台"
+              })
+            }
             reslove(this.mapOptions = res.data)
           }
         })