From 3d9d07a04299d9d43c8b4faa3192c7233c338026 Mon Sep 17 00:00:00 2001
From: gaoluyang <gaoluyang@rengu.cc>
Date: 星期四, 11 七月 2024 15:09:30 +0800
Subject: [PATCH] 科学计数法逻辑修改

---
 static/js/worker.js |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/static/js/worker.js b/static/js/worker.js
index e3fe14a..d23711c 100644
--- a/static/js/worker.js
+++ b/static/js/worker.js
@@ -220,11 +220,7 @@
             // let ask = currentSample.insProduct.find(m => m.id == item.i).ask?currentSample.insProduct.find(m => m.id == item.i).ask.split('&'):null;
             // let tell = currentSample.insProduct.find(m => m.id == item.i).tell?currentSample.insProduct.find(m => m.id == item.i).tell.split('&'):null;
             comResult = compute(item.v.f.replace(/=/g, ' '),comValue)
-            let list3 = []
-            list2.forEach(val => {
-              val = val.toString()
-              list3.push(val)
-            })
+            let list3 = list2.map(item=>item+'')
             isToExponential = list3.some(val => val.includes('e+'))
             // 瑁呭椤圭洰妫�楠屽�艰浆鍖�
             if (PROJECT === '瑁呭鐢电紗' && isToExponential) {

--
Gitblit v1.9.3