mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 14:31:00 +08:00
fix: 空地图试图切换错误
This commit is contained in:
@@ -224,7 +224,10 @@ export default {
|
||||
|
||||
if (chart.type === 'map') {
|
||||
const customAttr = JSON.parse(chart.customAttr)
|
||||
if (!customAttr.areaCode) return
|
||||
if (!customAttr.areaCode) {
|
||||
this.myChart.clear()
|
||||
return
|
||||
}
|
||||
const cCode = this.dynamicAreaCode || customAttr.areaCode
|
||||
if (this.$store.getters.geoMap[cCode]) {
|
||||
const json = this.$store.getters.geoMap[cCode]
|
||||
|
||||
Reference in New Issue
Block a user