From 20f423e2abcc517c650415b277bcdacf3ba0a5e8 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Fri, 29 Oct 2021 15:24:03 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1135=20fix=EF=BC=9B=20=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E4=B8=AD=E6=B2=A1=E6=9C=89=E6=9C=80=E4=B8=8B=E6=96=B9=E7=9A=84?= =?UTF-8?q?=E8=BE=B9=E6=A1=86=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/charts/line-chart-block.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/charts/line-chart-block.vue b/nezha-fronted/src/components/charts/line-chart-block.vue index d94e76d92..bc3b65686 100644 --- a/nezha-fronted/src/components/charts/line-chart-block.vue +++ b/nezha-fronted/src/components/charts/line-chart-block.vue @@ -948,6 +948,10 @@ export default { useUTC: false, // 使用本地时间 series: dataArg } + if (!maxValueCopies.copies) { + option.yAxis.min = 0 + option.yAxis.max = 1 + } if (unit.type == 'Time') { delete option.yAxis.maxInterval } @@ -1024,7 +1028,6 @@ export default { getChart(self.chartIndex).clear() getChart(self.chartIndex).setOption(option)// 创建图表 } - self.$refs['localLoading' + self.chartIndex].endLoading() self.firstShow = true // 展示操作按键 }, 800)