Browse Source

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

pull/2607/head
luocong2016 3 years ago
committed by GitHub
parent
commit
72dbe574d3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/components/Form/src/hooks/useFormEvents.ts

3
src/components/Form/src/hooks/useFormEvents.ts

@ -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…
Cancel
Save