From 4eecebd4da37de921366679058b86bedeac31921 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Wed, 13 Apr 2022 18:10:58 +0800 Subject: [PATCH] =?UTF-8?q?CN-322=20fix:=20=E5=B0=9D=E8=AF=95=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=9C=B0=E5=9B=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts/charts/ChartMap.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/charts/charts/ChartMap.vue b/src/views/charts/charts/ChartMap.vue index 9efddf55..640588c5 100644 --- a/src/views/charts/charts/ChartMap.vue +++ b/src/views/charts/charts/ChartMap.vue @@ -161,10 +161,10 @@ export default { chart.geodata = getGeoData(storageKey.iso36112WorldLow) chart.projection = new am4Maps.projections.Miller() this.myChart = shallowRef(chart) - this.polygonSeries = this.polygonSeriesFactory() + this.polygonSeries = shallowRef(this.polygonSeriesFactory()) if (this.isMapPoint) { - this.worldImageSeries = this.imageSeriesFactory() + this.worldImageSeries = shallowRef(this.imageSeriesFactory()) } this.loadAm4ChartMap(this.polygonSeries, this.worldImageSeries) @@ -178,7 +178,7 @@ export default { ev.target.isHover = false const geoData = getGeoData(countryId) if (geoData) { - this.countrySeries = this.polygonSeriesFactory() + this.countrySeries = shallowRef(this.polygonSeriesFactory()) this.countrySeries.geodata = geoData this.polygonSeries.hide() const country = ev.target.dataItem.dataContext.serverCountry @@ -197,9 +197,9 @@ export default { targetMapObject.series.chart.zoomToMapObject(targetMapObject) const geoData = getGeoData(countryId) if (geoData) { - this.countrySeries = this.polygonSeriesFactory() + this.countrySeries = shallowRef(this.polygonSeriesFactory()) this.countrySeries.geodata = geoData - this.countryImageSeries = this.imageSeriesFactory() + this.countryImageSeries = shallowRef(this.imageSeriesFactory()) this.polygonSeries.hide() this.worldImageSeries.hide() const country = ev.target.dataItem.dataContext.name