update web_src/src/components/dialog/changePassword.vue.

This commit is contained in:
lanss 2022-01-25 13:50:22 +00:00 committed by Gitee
parent 16c7f007c6
commit 8eca76a2bc

View File

@ -75,7 +75,10 @@ export default {
isLoging: false, isLoging: false,
rules: { rules: {
oldPassword: [{ required: true, validator: validatePass0, trigger: "blur" }], oldPassword: [{ required: true, validator: validatePass0, trigger: "blur" }],
newPassword: [{ required: true, validator: validatePass1, trigger: "blur" }], newPassword: [{ required: true, validator: validatePass1, trigger: "blur" }, {
pattern: /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,.\/]).{8,20}$/,
message: "密码长度在8-20位之间,由字母+数字+特殊字符组成",
},],
confirmPassword: [{ required: true, validator: validatePass2, trigger: "blur" }], confirmPassword: [{ required: true, validator: validatePass2, trigger: "blur" }],
}, },
}; };