From 3c2645ad5f8282027be92e2b24d6375e36495fe6 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期一, 12 八月 2024 18:19:13 +0800 Subject: [PATCH] work.js文件修改 --- static/js/worker.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/static/js/worker.js b/static/js/worker.js index 580ae6e..b5ffbfa 100644 --- a/static/js/worker.js +++ b/static/js/worker.js @@ -368,7 +368,7 @@ let str = a[b].v.ct.fa.split('.')[1] num = str.length a[b].v.v = comResult?Number(comResult).toFixed(num):comResult - }else if(comResult.includes('e+')|| comResult.includes('e-')){ + }else if(typeof comResult == 'string' && (comResult.includes('e+')|| comResult.includes('e-'))){ a[b].v.v = comResult }else{ let val = parseFloat(Number(comResult).toFixed(3)) -- Gitblit v1.9.3