From f28c87dbd3b879ab136d4dae1b739a9a40c312e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Tue, 19 Sep 2023 10:39:58 +0800 Subject: [PATCH] =?UTF-8?q?CN-1316=20fix:=20=E5=9C=A8=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=A1=86=E4=B8=AD=E6=90=9C=E7=B4=A2=E5=88=B0=E7=9B=AE=E6=A0=87?= =?UTF-8?q?=E5=9B=BD=E5=AE=B6=E5=B9=B6=E9=80=89=E4=B8=AD=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E6=9C=AA=E8=87=AA=E5=8A=A8=E4=B8=8B=E9=92=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts2/charts/npm/NpmMap.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/charts2/charts/npm/NpmMap.vue b/src/views/charts2/charts/npm/NpmMap.vue index 42bc156d..bad2f756 100644 --- a/src/views/charts2/charts/npm/NpmMap.vue +++ b/src/views/charts2/charts/npm/NpmMap.vue @@ -50,7 +50,7 @@ import { shallowRef } from 'vue' import * as am4Core from '@amcharts/amcharts4/core' import * as am4Maps from '@amcharts/amcharts4/maps' import { computeScore, getGeoData } from '@/utils/tools' -import { storageKey, unitTypes } from '@/utils/constants' +import { countryNameIdMapping, storageKey, unitTypes } from '@/utils/constants' import locationOptions from '@/views/charts2/charts/locationOptions' import { valueToRangeValue } from '@/utils/unit-convert' import { getSecond } from '@/utils/date-util' @@ -393,6 +393,9 @@ export default { this.countrySeries.hide() this.countryImageSeries.hide() this.myChart.zoomToGeoPoint(this.myChart.homeGeoPoint, this.myChart.homeZoomLevel, true) + } else { + const countryId = countryNameIdMapping[n] + await this.drill(countryId) } }, timeFilter: {