zhangweicheng 5 年之前
父節點
當前提交
7233545644
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      public/web/scMathUtil.js

+ 1 - 0
public/web/scMathUtil.js

@@ -173,6 +173,7 @@ let scMathUtil = {
     roundForObj:function(obj,decimal){
         let me = this;
         let value;
+        if(obj === undefined || obj === null) return 0;
         let n = Math.pow(10,decimal);
         if(me.isNumber(obj)){
           value = Math.round(obj * n) / n;