summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchenjinsong <[email protected]>2022-01-11 14:30:12 +0800
committerchenjinsong <[email protected]>2022-01-11 14:30:12 +0800
commitc4bf0c3d60f92caa4d5df220def173ed57cbcc26 (patch)
treef1cffc4c1c7731416165245ca6b44832908da3fb
parentc3ab66db6a6671a75bb1d49694c5eea36b65db04 (diff)
fix: 优化实体列表性能21.08-rc5dev-xj-0111
-rw-r--r--src/views/charts/Chart.vue6
1 files 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())