Commit 948c4d83 authored by Breaker-93's avatar Breaker-93

fix: 密码修改限制最小5位

parent 458db746
......@@ -142,6 +142,8 @@ export default {
var validatePass = (rule, value, callback) => {
if (value === "") {
callback(new Error("请输入新密码"));
} else if (value.length < 5) {
callback(new Error('密码不能小于5位'))
} else {
if (this.ruleForm.checkPass !== "") {
this.$refs.ruleForm.validateField("checkPass");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment