--no commit message
Showing
1 changed file
with
3 additions
and
6 deletions
... | @@ -164,7 +164,7 @@ | ... | @@ -164,7 +164,7 @@ |
164 | ...mapGetters(["sidebar", "dicData"]), | 164 | ...mapGetters(["sidebar", "dicData"]), |
165 | logoName () { | 165 | logoName () { |
166 | return ( | 166 | return ( |
167 | this.dicData["sysCode"] && this.dicData["sysCode"].filter((item) => { return item.DCODE == "areaMap" }) | 167 | this.dicData["sysCode"].filter((item) => { return item.DCODE == "areaMap" }) |
168 | ); | 168 | ); |
169 | }, | 169 | }, |
170 | }, | 170 | }, |
... | @@ -172,11 +172,8 @@ | ... | @@ -172,11 +172,8 @@ |
172 | // 根据行政区代码匹配行政区 | 172 | // 根据行政区代码匹配行政区 |
173 | getDistrictcode () { | 173 | getDistrictcode () { |
174 | this.mapjson = "" | 174 | this.mapjson = "" |
175 | if (this.logoName[0].DNAME == "hanzhong") { | 175 | if (this.logoName[0].DNAME) { |
176 | this.mapjson = "hanzhong"; | 176 | this.mapjson = this.logoName[0].DNAME; |
177 | require(`@/common/map/${this.mapjson}.js`); | ||
178 | } else { | ||
179 | this.mapjson = "yushu"; | ||
180 | require(`@/common/map/${this.mapjson}.js`); | 177 | require(`@/common/map/${this.mapjson}.js`); |
181 | } | 178 | } |
182 | }, | 179 | }, | ... | ... |
-
Please register or sign in to post a comment