refactor: edit rules
This commit is contained in:
parent
4058a7613a
commit
630a667c64
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ watch(
|
|||
:rules="[
|
||||
(val: string) => val.length > 2 || $t('form.error.required'),
|
||||
(val: string) =>
|
||||
(val.length > 0 && /^[a-zA-Z0-9\s_]+$/.test(val)) ||
|
||||
(val.length > 0 && /^[a-zA-Z0-9_]+$/.test(val)) ||
|
||||
$t('form.error.letterAndNumOnly'),
|
||||
]"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue