mirror of
https://github.com/vbenjs/vben-admin-thin-next.git
synced 2025-01-23 17:50:22 +08:00
fix(form): fix validate
promise catch
修复自动校验时没有捕获promise catch的错误提示
This commit is contained in:
parent
4bb506fb1f
commit
571f28138f
@ -231,9 +231,7 @@
|
||||
formModel[key] = value;
|
||||
const { validateTrigger } = unref(getBindValue);
|
||||
if (!validateTrigger || validateTrigger === 'change') {
|
||||
try {
|
||||
validateFields([key]);
|
||||
} catch (e) {}
|
||||
validateFields([key]).catch((_) => {});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user