Browse Source

修改项目信息输入框小数点判断规则

duxiangyu 2 years ago
parent
commit
0a1bdcac7c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/project-manage/form/items/input.vue

+ 1 - 1
src/components/project-manage/form/items/input.vue

@@ -127,7 +127,7 @@ export default {
         }
       }
 
-      if (!["DOUBLE"].includes(this.formItemObj.dataType)) {
+      if (["DOUBLE"].includes(this.formItemObj.dataType)) {
         if (!isDouble.test(e)) {
           this.errorInfo = "仅支持小数点后两位";
           return;