quwangxin 2 anni fa
parent
commit
1ac45c61a2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/views/flowable/model/index.vue

+ 1 - 1
src/views/flowable/model/index.vue

@@ -370,7 +370,7 @@
       },
       //验证字符串是否是数字
       checkNumber (theObj) {
-        var reg = /^[0-9]+.?[0-9]*$/;
+        var reg = /^[0-9]+\.?[0-9]*$/;
         if (reg.test(theObj)) {
           return true;
         }