chao hace 3 años
padre
commit
8aef1e5bd4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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()