fix: 修复npm location地图下钻bug
This commit is contained in:
@@ -290,8 +290,12 @@ export default {
|
|||||||
},
|
},
|
||||||
async location (n) {
|
async location (n) {
|
||||||
this.$store.commit('setNpmLocationCountry', n)
|
this.$store.commit('setNpmLocationCountry', n)
|
||||||
|
if (this.countrySeries) {
|
||||||
this.countrySeries.dispose()
|
this.countrySeries.dispose()
|
||||||
|
}
|
||||||
|
if (this.countryImageSeries) {
|
||||||
this.countryImageSeries.dispose()
|
this.countryImageSeries.dispose()
|
||||||
|
}
|
||||||
if (n) {
|
if (n) {
|
||||||
const countryId = countryNameIdMapping[n]
|
const countryId = countryNameIdMapping[n]
|
||||||
await this.drill(countryId)
|
await this.drill(countryId)
|
||||||
|
|||||||
Reference in New Issue
Block a user