From bd2027468a65243d98781d205b33155f2ac6e7cc Mon Sep 17 00:00:00 2001 From: zhangyu Date: Thu, 15 Oct 2020 14:46:12 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E5=B0=8F?= =?UTF-8?q?=E6=95=B0=E4=BD=8D=E6=95=B0=E4=B8=BA0=20=E6=98=AF=E7=9A=84?= =?UTF-8?q?=E7=B2=BE=E5=BA=A6=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/charts/line-chart-block.vue | 2 +- 1 file changed, 1 insertion(+), 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 1cc0b51b1..bc4646346 100644 --- a/nezha-fronted/src/components/charts/line-chart-block.vue +++ b/nezha-fronted/src/components/charts/line-chart-block.vue @@ -747,7 +747,7 @@ if(chartDataFormat.Interval(maxValue,copies,unit.type,'min')<1&&dot<2){ dot=2; } - if(dot===0&&flag){ + if(flag || dot==0){ dot=1; } return unit.compute(value,index,-1,dot);