From 49af39650d947cd7b12f665e58585c95410715d3 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期二, 16 七月 2024 14:51:13 +0800
Subject: [PATCH] 修改bug

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

diff --git a/static/js/worker.js b/static/js/worker.js
index 8bcac61..a8717a2 100644
--- a/static/js/worker.js
+++ b/static/js/worker.js
@@ -310,10 +310,13 @@
             if (a[0].r == item.r && comResult !== '') {
               for (var b in a) {
                 if (a[b].c == item.c) {
-                  // console.log('comResult---', comResult)
                   try{
-                    let val = parseFloat(comResult.toFixed(3))
-                    a[b].v.v = isNaN(val) ? '' : val
+                    if(comResult==0){
+                      a[b].v.v = 0
+                    }else{
+                      let val = parseFloat(comResult.toFixed(3))
+                      a[b].v.v = isNaN(val) ? '' : val
+                    }
                   }catch(error){
                     a[b].v.v = comResult
                     console.log('error---', error)

--
Gitblit v1.9.3