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' }