Explorar el Código

修改excel公式没取到值按0计算

Renxy hace 1 año
padre
commit
5504a59410
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      src/global/formula.js

+ 3 - 3
src/global/formula.js

@@ -416,7 +416,7 @@ const luckysheetformula = {
                 }
                 else {
                     //若单元格为null或为空,此处推入null(待考虑是否使用"null")
-                    rangeNow.push(null);
+                    rangeNow.push(0);
                 }
             }
         }
@@ -428,7 +428,7 @@ const luckysheetformula = {
                     fmt = (fmt == "General") ? f : fmt;
                 }
                 else {
-                    rangeNow.push(null);
+                    rangeNow.push(0);
                 }
             }
         }
@@ -441,7 +441,7 @@ const luckysheetformula = {
                         fmt = (fmt == "General") ? f : fmt;
                     }
                     else {
-                        rangeNow.push(null);
+                        rangeNow.push(0);
                     }
                 }
             }