fix: 修复表单验证失败的多个错误提示,语法报错问题 (#2601)

This commit is contained in:
luocong2016 2023-03-06 11:24:09 +08:00 committed by GitHub
parent 4c91ac11e2
commit 72dbe574d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}