Merge pull request #9394 from dataease/pr@dev-v2@fix_link

fix: 公共链接密码兼容之前的版本
This commit is contained in:
fit2cloud-chenyw 2024-04-27 17:09:07 +08:00 committed by GitHub
commit eb9ec20bee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -67,7 +67,7 @@ const rule = reactive<FormRules>({
{ required: true, message: t('pblink.key_pwd'), trigger: 'blur' }, { required: true, message: t('pblink.key_pwd'), trigger: 'blur' },
{ {
required: true, 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'), message: t('pblink.pwd_format_error'),
trigger: 'blur' trigger: 'blur'
} }