From ebd306eef1115c0024458438120694f4f9adaa2a Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 15 Dec 2021 13:45:24 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=9C=B0=E5=9B=BE=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20resize=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/chart/chart/chartMap.vue | 4 ++++ nezha-fronted/src/components/chart/panelChart.vue | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/chart/chart/chartMap.vue b/nezha-fronted/src/components/chart/chart/chartMap.vue index 2ce50d144..7adfd1d93 100644 --- a/nezha-fronted/src/components/chart/chart/chartMap.vue +++ b/nezha-fronted/src/components/chart/chart/chartMap.vue @@ -216,6 +216,10 @@ export default { tooltipEndpointChart.setOption(endpointOption); tooltipPrometheusChart.setOption(prometheusOption); }, 100); */ + }, + resize () { + console.log(this.map); + this.initMap() } } } diff --git a/nezha-fronted/src/components/chart/panelChart.vue b/nezha-fronted/src/components/chart/panelChart.vue index e35d9c22b..90f68b490 100644 --- a/nezha-fronted/src/components/chart/panelChart.vue +++ b/nezha-fronted/src/components/chart/panelChart.vue @@ -153,7 +153,7 @@ export default { }) } if (this.chartInfo.type === 'diagram') { - this.chartInfo.type = 'assetInfo' + this.chartInfo.type = 'map' this.chartData = [this.chartInfo.param.topo] if (!this.chartInfo.param.topo || !this.chartInfo.param.topo.pens.length){ this.chartData = []