mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 18:40:22 +08:00
fix: 修复表单验证失败的多个错误提示,语法报错问题 (#2601)
This commit is contained in:
parent
4c91ac11e2
commit
72dbe574d3
@ -314,6 +314,9 @@ export function useFormEvents({
|
||||
const res = handleFormValues(values);
|
||||
emit('submit', res);
|
||||
} catch (error: any) {
|
||||
if (error?.outOfDate === false && error?.errorFields) {
|
||||
return;
|
||||
}
|
||||
throw new Error(error);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user