This commit is contained in:
dap
2024-09-22 15:48:13 +08:00
73 changed files with 2047 additions and 177 deletions

View File

@@ -82,7 +82,7 @@ setupVbenForm<FormComponentType>({
},
defineRules: {
required: (value, _params, ctx) => {
if ((!value && value !== 0) || value.length === 0) {
if (value === undefined || value === null || value.length === 0) {
return $t('formRules.required', [ctx.label]);
}
return true;