From aac6b22726b59fe04ad10ae84047e52043e2754d Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Sat, 27 Apr 2024 17:08:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=AC=E5=85=B1=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E5=85=BC=E5=AE=B9=E4=B9=8B=E5=89=8D=E7=9A=84?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/locales/zh-CN.ts | 4 ++-- core/core-frontend/src/views/share/link/pwd.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index 790b625c86..12ffe370e8 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -2150,9 +2150,9 @@ export default { }, pblink: { key_pwd: '请输入密码打开链接', - input_placeholder: '请输入4位数字或字母', + input_placeholder: '请输入4~10位数字或字母', pwd_error: '密码错误', - pwd_format_error: '请输入4位数字或字母', + pwd_format_error: '请输入4~10位数字或字母', sure_bt: '确定', back_parent: '返回上一级' }, diff --git a/core/core-frontend/src/views/share/link/pwd.vue b/core/core-frontend/src/views/share/link/pwd.vue index 2ed369e492..5b950f865f 100644 --- a/core/core-frontend/src/views/share/link/pwd.vue +++ b/core/core-frontend/src/views/share/link/pwd.vue @@ -67,7 +67,7 @@ const rule = reactive({ { required: true, message: t('pblink.key_pwd'), trigger: 'blur' }, { required: true, - pattern: /^(?=.*[A-Za-z])(?=.*\d)(?=.*[!@#$%^&*()_+])[A-Za-z\d!@#$%^&*()_+]{4,10}$/, + pattern: /^[A-Za-z\d!@#$%^&*()_+]{4,10}$/, message: t('pblink.pwd_format_error'), trigger: 'blur' }