forked from github/dataease
Merge pull request #1522 from dataease/pr@dev@fix_map_switch_error
fix: 空地图试图切换错误
This commit is contained in:
commit
a89a9a47a5
@ -224,7 +224,10 @@ export default {
|
|||||||
|
|
||||||
if (chart.type === 'map') {
|
if (chart.type === 'map') {
|
||||||
const customAttr = JSON.parse(chart.customAttr)
|
const customAttr = JSON.parse(chart.customAttr)
|
||||||
if (!customAttr.areaCode) return
|
if (!customAttr.areaCode) {
|
||||||
|
this.myChart.clear()
|
||||||
|
return
|
||||||
|
}
|
||||||
const cCode = this.dynamicAreaCode || customAttr.areaCode
|
const cCode = this.dynamicAreaCode || customAttr.areaCode
|
||||||
if (this.$store.getters.geoMap[cCode]) {
|
if (this.$store.getters.geoMap[cCode]) {
|
||||||
const json = this.$store.getters.geoMap[cCode]
|
const json = this.$store.getters.geoMap[cCode]
|
||||||
|
Loading…
Reference in New Issue
Block a user