NEZ-1100 fix; 修改 chart-group立马打开会一直显示loading的问题

This commit is contained in:
zhangyu
2021-10-27 15:01:39 +08:00
parent d9c7196768
commit 867dc08ce6
2 changed files with 3 additions and 2 deletions

View File

@@ -1985,6 +1985,9 @@ export default {
if (getChart(this.chartIndex)) {
const divHeight = this.$refs.legendArea.offsetHeight
getChart(this.chartIndex).resize({ height: (this.data.height * this.stepWidth - divHeight - chartResizeTool.titleHeight - chartResizeTool.chartBlankHeight) })
if (!getChart(this.chartIndex).getOption()) {
return
}
let minInterval = ''
let splitNumber = ''
if (this.fromTopo) {