Merge branch 'dev-3.2' of https://git.mesalab.cn/nezha/nezha-fronted into dev-3.2

This commit is contained in:
@changcode
2021-12-15 17:30:03 +08:00
2 changed files with 5 additions and 1 deletions

View File

@@ -216,6 +216,10 @@ export default {
tooltipEndpointChart.setOption(endpointOption);
tooltipPrometheusChart.setOption(prometheusOption);
}, 100); */
},
resize () {
console.log(this.map);
this.initMap()
}
}
}

View File

@@ -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 = []