diff --git a/src/views/components/showmap.vue b/src/views/components/showmap.vue index 5673c9a..978adb9 100644 --- a/src/views/components/showmap.vue +++ b/src/views/components/showmap.vue @@ -332,9 +332,8 @@ export default { // this.myCharts1 = this.$echarts.init(document.getElementById('gdMaps')); // this.$echarts.registerMap("china1", china1, {}); this.$echarts.registerMap("莒县", prefecture, {}); - window.addEventListener("resize", function () { + window.addEventListener("resize", () => { this.myChart1.resize(); - // this.myCharts1.resize(); }); var yMax = 0; for (var j = 0; j < this.mapData.length; j++) {