Browse Source

validate 增加 callback

shilipojs 2 years ago
parent
commit
c37d529c92
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/career/zhiyuan/components/score.vue

+ 2 - 2
src/views/career/zhiyuan/components/score.vue

@@ -46,9 +46,9 @@ export default {
                 cb(`成绩超出当前省份满分${this.voluntaryData.maxScore}`)
                 cb(`成绩超出当前省份满分${this.voluntaryData.maxScore}`)
               } else if(v <= 0) {
               } else if(v <= 0) {
                 cb(`成绩不能为负数`)
                 cb(`成绩不能为负数`)
+              }else {
+                cb()
               }
               }
-              console.log(r)
-              console.log(v)
             }, trigger: ['blur','change']
             }, trigger: ['blur','change']
           }
           }
         ],
         ],