From c3ab66db6a6671a75bb1d49694c5eea36b65db04 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Thu, 18 Nov 2021 09:09:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E4=B8=8B=E9=92=BB=E4=B8=AD=E5=9B=BD=E6=97=B6countryid=E6=9C=89?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E7=AD=89=E4=BA=8Eprivate=20ip=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts/Chart.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/charts/Chart.vue b/src/views/charts/Chart.vue index 981877b2..f8afd6b1 100644 --- a/src/views/charts/Chart.vue +++ b/src/views/charts/Chart.vue @@ -857,7 +857,8 @@ export default { polygonTemplate.strokeWidth = 0.5 polygonTemplate.fill = am4Core.color('rgba(176,196,222,.5)') polygonTemplate.events.on('hit', ev => { - const countryId = ev.target.dataItem.dataContext.id + let countryId = ev.target.dataItem.dataContext.id + countryId = countryId === 'Private IP' ? 'China' : countryId if (countryId) { ev.target.series.chart.zoomToMapObject(ev.target) ev.target.isHover = false