fix: locales

pull/101/head
xingyu4j 2025-05-12 11:31:50 +08:00
parent a7dcebc82a
commit 5922f45112
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ setupVbenForm<ComponentType>({
if (value === undefined || value === null || value.length === 0) {
return true;
} else if (!MOBILE_REGEX.test(value)) {
return $t('ui.formRules.phone', [ctx.label]);
return $t('ui.formRules.mobile', [ctx.label]);
}
return true;
},
@ -55,7 +55,7 @@ setupVbenForm<ComponentType>({
return $t('ui.formRules.required', [ctx.label]);
}
if (!MOBILE_REGEX.test(value)) {
return $t('ui.formRules.phone', [ctx.label]);
return $t('ui.formRules.mobile', [ctx.label]);
}
return true;
},