fix: 公共链接密码兼容之前的版本

This commit is contained in:
fit2cloud-chenyw 2024-04-27 17:08:19 +08:00
parent 8394e906dc
commit aac6b22726
2 changed files with 3 additions and 3 deletions

View File

@ -2150,9 +2150,9 @@ export default {
},
pblink: {
key_pwd: '请输入密码打开链接',
input_placeholder: '请输入4位数字或字母',
input_placeholder: '请输入410位数字或字母',
pwd_error: '密码错误',
pwd_format_error: '请输入4位数字或字母',
pwd_format_error: '请输入410位数字或字母',
sure_bt: '确定',
back_parent: '返回上一级'
},

View File

@ -67,7 +67,7 @@ const rule = reactive<FormRules>({
{ 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'
}