!159 eslint升级v9版本

* update: eslint升级v9版本 & 更新一些不符合校验规则的代码
This commit is contained in:
玲娜贝er
2024-11-27 07:39:34 +00:00
committed by LiuHao
parent f3425493ed
commit 845b848b60
9 changed files with 102 additions and 36 deletions

View File

@ -393,7 +393,7 @@ const initData: PageData<UserForm, UserQuery> = {
message: '用户密码长度必须介于 5 和 20 之间',
trigger: 'blur'
},
{ pattern: /^[^<>"'|\\]+$/, message: '不能包含非法字符:< > " \' \\\ |', trigger: 'blur' }
{ pattern: /^[^<>"'|\\]+$/, message: '不能包含非法字符:< > " \' \\ |', trigger: 'blur' }
],
email: [
{
@ -506,7 +506,7 @@ const handleResetPwd = async (row: UserVO) => {
inputErrorMessage: '用户密码长度必须介于 5 和 20 之间',
inputValidator: (value) => {
if (/<|>|"|'|\||\\/.test(value)) {
return '不能包含非法字符:< > " \' \\\ |';
return '不能包含非法字符:< > " \' \\ |';
}
}
})