From 260ea9e668c34279275a21cea259723cc3182c72 Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Tue, 26 Oct 2021 09:03:15 +0800 Subject: [PATCH] =?UTF-8?q?[bug]=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/tools/UserPassword.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tools/UserPassword.vue b/src/components/tools/UserPassword.vue index 3914082..864468d 100644 --- a/src/components/tools/UserPassword.vue +++ b/src/components/tools/UserPassword.vue @@ -74,7 +74,7 @@ export default { rules: [ { required: true, message: '请输入新密码!' }, { - pattern: /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,./]).{8,}$/, + pattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,./]).{8,30}$/, message: '密码由8位及以上数字、大小写字母和特殊符号组成!' }, { validator: this.validateToNextPassword }