Explorar el Código

helper,基础判断方法修正

MaiXinRong hace 2 años
padre
commit
0a00ccf4bd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/extend/helper.js

+ 1 - 1
app/extend/helper.js

@@ -411,7 +411,7 @@ module.exports = {
      */
     numEqual(value1, value2) {
         if (value1 && value2) {
-            return Math.abs(value2 - value1) > zeroRange;
+            return Math.abs(value2 - value1) < zeroRange;
         }
         return (!value1 && !value2);