fix: 修复npm location地图下钻bug

This commit is contained in:
chenjinsong
2022-08-24 17:23:12 +08:00
parent 0d936feedb
commit 3743e7520a

View File

@@ -290,8 +290,12 @@ export default {
},
async location (n) {
this.$store.commit('setNpmLocationCountry', n)
this.countrySeries.dispose()
this.countryImageSeries.dispose()
if (this.countrySeries) {
this.countrySeries.dispose()
}
if (this.countryImageSeries) {
this.countryImageSeries.dispose()
}
if (n) {
const countryId = countryNameIdMapping[n]
await this.drill(countryId)