From d0bb428ac16b2da3b224613655cfccbb7adc6eac Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 31 Aug 2021 11:13:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=AA=E8=A1=A8=E6=9D=BF=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E5=9C=B0=E5=9B=BEresize=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/components/ChartComponent.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/views/chart/components/ChartComponent.vue b/frontend/src/views/chart/components/ChartComponent.vue index f23c41b0f5..92a1374e18 100644 --- a/frontend/src/views/chart/components/ChartComponent.vue +++ b/frontend/src/views/chart/components/ChartComponent.vue @@ -214,6 +214,13 @@ export default { // 指定图表的配置项和数据 const chart = this.myChart chart.resize() + this.reDrawMap() + }, + reDrawMap() { + const chart = this.chart + if (chart.type === 'map') { + this.preDraw() + } }, trackClick(trackAction) { const param = this.pointParam