refactor: employee => remove validation rules for last name input
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 10s

This commit is contained in:
puriphatt 2025-04-22 09:34:25 +07:00
parent 88f40dcb47
commit 74291c0552

View file

@ -208,13 +208,7 @@ watch(
v-model="lastNameEN"
:rules="
employee
? [
(val: string) => !!val || $t('form.error.required'),
(val: string) =>
!val ||
/^[A-Za-z\s]+$/.test(val) ||
$t('form.error.letterOnly'),
]
? []
: [
(val: string) =>
!val ||