Commit 571f2813 authored by 无木's avatar 无木

fix(form): fix `validate` promise catch

修复自动校验时没有捕获promise catch的错误提示
parent 4bb506fb
......@@ -231,9 +231,7 @@
formModel[key] = value;
const { validateTrigger } = unref(getBindValue);
if (!validateTrigger || validateTrigger === 'change') {
try {
validateFields([key]);
} catch (e) {}
validateFields([key]).catch((_) => {});
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment