MaiXinRong 6 saat önce
ebeveyn
işleme
22b9993837
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      app/public/js/zh_calc.js

+ 3 - 3
app/public/js/zh_calc.js

@@ -9,9 +9,6 @@
  */
 
 ;
-math.import({
-    if: function(con, a, b) { return con ? a : b; },
-});
 const zhBaseCalc = (function () {
     const zeroPrecision = 12, mulPrecision = 12, divPrecision = 12;
 
@@ -294,6 +291,9 @@ const ZhCalc = (function () {
             math && math.config({
                 number: 'BigNumber',
             });
+            math.import({
+                if: function(con, a, b) { return con ? a : b; },
+            });
             mathConfig = true;
         }
     }