From 867dc08ce6c6b36a86ae6efed02045b707bbfe50 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 27 Oct 2021 15:01:39 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1100=20fix;=20=E4=BF=AE=E6=94=B9=20chart-gr?= =?UTF-8?q?oup=E7=AB=8B=E9=A9=AC=E6=89=93=E5=BC=80=E4=BC=9A=E4=B8=80?= =?UTF-8?q?=E7=9B=B4=E6=98=BE=E7=A4=BAloading=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/charts/line-chart-block.vue | 3 +++ nezha-fronted/src/components/common/mixin/detailViewMixin.js | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/charts/line-chart-block.vue b/nezha-fronted/src/components/charts/line-chart-block.vue index b5c2d0dea..d94e76d92 100644 --- a/nezha-fronted/src/components/charts/line-chart-block.vue +++ b/nezha-fronted/src/components/charts/line-chart-block.vue @@ -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) { diff --git a/nezha-fronted/src/components/common/mixin/detailViewMixin.js b/nezha-fronted/src/components/common/mixin/detailViewMixin.js index 53e0c0917..6e3131884 100644 --- a/nezha-fronted/src/components/common/mixin/detailViewMixin.js +++ b/nezha-fronted/src/components/common/mixin/detailViewMixin.js @@ -1,5 +1,3 @@ -import project from "@/components/page/monitor/project/project"; - export default { props: {}, data () {