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 8e9a68a59..3bb8c6ecb 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 = []