From fc45c8a0c2a40e29b1e75d43f8aff973d83bd127 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 16 Dec 2020 15:01:18 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E6=97=B6=E6=8A=A5=E9=94=99=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/chartPreview.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/charts/chartPreview.vue b/nezha-fronted/src/components/charts/chartPreview.vue index 9f5c603bf..6fd22dbf6 100644 --- a/nezha-fronted/src/components/charts/chartPreview.vue +++ b/nezha-fronted/src/components/charts/chartPreview.vue @@ -551,7 +551,7 @@ this.noData=false; } let _chartItem = JSON.parse(JSON.stringify(chartItem)); - if (chartItem.from == $CONSTANTS.fromRoute.endpoint) { + if (chartItem.from == this.$CONSTANTS.fromRoute.endpoint) { _chartItem.type = "line"; } this.setData(_chartItem, series, legend); @@ -1105,7 +1105,7 @@ this.getChartData(); } else if (chartType === 'line' || chartType === 'bar' || chartType === 'stackArea' || chartType === 4 || this.chart.from == 'endpoint') { this.echartModalStore.clear(); - if (this.chart.from != $CONSTANTS.fromRoute.endpoint) { + if (this.chart.from != this.$CONSTANTS.fromRoute.endpoint) { this.showLegend = false; } this.$refs.loadingPreview.startLoading();