From 72dbe574d3dc66056a2a660952f0bc7ce49b8162 Mon Sep 17 00:00:00 2001 From: luocong2016 Date: Mon, 6 Mar 2023 11:24:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E5=A4=B1=E8=B4=A5=E7=9A=84=E5=A4=9A=E4=B8=AA?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA=EF=BC=8C=E8=AF=AD=E6=B3=95?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98=20(#2601)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Form/src/hooks/useFormEvents.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Form/src/hooks/useFormEvents.ts b/src/components/Form/src/hooks/useFormEvents.ts index 7af80a562..df6a91fb7 100644 --- a/src/components/Form/src/hooks/useFormEvents.ts +++ b/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); } }