From afdafa3aeeba211c49fa65614bfee138fee52db0 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Wed, 18 Aug 2021 17:09:46 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-912=20fix:=20=E4=BF=AE=E5=A4=8Dnull?= =?UTF-8?q?=E5=80=BC=E5=AF=BC=E8=87=B4chart-tooltip=E6=8A=A5=E9=94=99?= =?UTF-8?q?=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/libs/bus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nezha-fronted/src/libs/bus.js b/nezha-fronted/src/libs/bus.js index 67d8f015f..3c931a701 100644 --- a/nezha-fronted/src/libs/bus.js +++ b/nezha-fronted/src/libs/bus.js @@ -338,7 +338,7 @@ export default new Vue({ } }, countDecimals (value) { - if (Math.floor(value) !== value) { + if ((value || value === 0) && Math.floor(value) !== value) { const arr = value.toString().split('.') if (Math.abs(arr[0] > 0) || arr.length < 2) { return 2