refactor: handle codeHome Not required
This commit is contained in:
parent
c948a533c7
commit
50abe7ad20
1 changed files with 1 additions and 1 deletions
|
|
@ -306,8 +306,8 @@ watch(districtId, fetchSubDistrict);
|
||||||
disabledRule
|
disabledRule
|
||||||
? []
|
? []
|
||||||
: [
|
: [
|
||||||
(val) => (val && val.length > 0) || $t('form.error.required'),
|
|
||||||
(val) =>
|
(val) =>
|
||||||
|
!val ||
|
||||||
(val && val.length === 11 && /[0-9]+/.test(val)) ||
|
(val && val.length === 11 && /[0-9]+/.test(val)) ||
|
||||||
$t('form.error.invalidCustomeMessage', {
|
$t('form.error.invalidCustomeMessage', {
|
||||||
msg: $t('form.error.requireLength', { msg: 11 }),
|
msg: $t('form.error.requireLength', { msg: 11 }),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue