MaiXinRong 22 часов назад
Родитель
Сommit
22b9993837
1 измененных файлов с 3 добавлено и 3 удалено
  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;
         }
     }