fix(form): fix validate promise catch

修复自动校验时没有捕获promise catch的错误提示
This commit is contained in:
无木 2021-07-21 11:18:10 +08:00
parent 4bb506fb1f
commit 571f28138f

View File

@ -231,9 +231,7 @@
formModel[key] = value;
const { validateTrigger } = unref(getBindValue);
if (!validateTrigger || validateTrigger === 'change') {
try {
validateFields([key]);
} catch (e) {}
validateFields([key]).catch((_) => {});
}
}