From 3743e7520aedcb4f01bea84258d135cb0519ddca Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Wed, 24 Aug 2022 17:23:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dnpm=20location?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E4=B8=8B=E9=92=BBbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts2/charts/npm/NpmMap.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/charts2/charts/npm/NpmMap.vue b/src/views/charts2/charts/npm/NpmMap.vue index df087342..ad8db15f 100644 --- a/src/views/charts2/charts/npm/NpmMap.vue +++ b/src/views/charts2/charts/npm/NpmMap.vue @@ -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)