chao 3 anni fa
parent
commit
8aef1e5bd4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/views/sys/login/index.vue

+ 1 - 1
src/views/sys/login/index.vue

@@ -50,7 +50,7 @@ export default {
       }
     }
     const validatePassword = (rule, value, callback) => {
-      if (value.length < 6) {
+      if (!value || value.length < 6) {
         callback(new Error('The password can not be less than 6 digits'))
       } else {
         callback()