|
@@ -378,7 +378,7 @@ export default {
|
|
|
// 验证密码
|
|
|
changeParssword() {
|
|
|
if (this.ruleForm.password) {
|
|
|
- let reg = /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,12}$/;
|
|
|
+ let reg = /^(?=.*[0-9].*)(?=.*[A-Z].*)(?=.*[a-z].*).{8,12}$/;
|
|
|
let result = reg.test(this.ruleForm.password);
|
|
|
if (result) {
|
|
|
this.passwordError = false;
|