From 0cf1b2319156b96e65e56e50345716adb99f26bf Mon Sep 17 00:00:00 2001
From: Crunchy <3114200645@qq.com>
Date: 星期二, 13 八月 2024 17:40:35 +0800
Subject: [PATCH] 通信初始化提交
---
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