From c4bf0c3d60f92caa4d5df220def173ed57cbcc26 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Tue, 11 Jan 2022 14:30:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E5=AE=9E=E4=BD=93?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts/Chart.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/charts/Chart.vue b/src/views/charts/Chart.vue index f8afd6b1..d36f1cc5 100644 --- a/src/views/charts/Chart.vue +++ b/src/views/charts/Chart.vue @@ -857,9 +857,9 @@ export default { polygonTemplate.strokeWidth = 0.5 polygonTemplate.fill = am4Core.color('rgba(176,196,222,.5)') polygonTemplate.events.on('hit', ev => { - let countryId = ev.target.dataItem.dataContext.id - countryId = countryId === 'Private IP' ? 'China' : countryId - if (countryId) { + const countryId = ev.target.dataItem.dataContext.id + // countryId = countryId === 'Private IP' ? 'China' : countryId + if (countryId && countryId !== 'Private IP') { ev.target.series.chart.zoomToMapObject(ev.target) ev.target.isHover = false this.countrySeries = chart.series.push(new am4Maps.MapPolygonSeries())