From 50aa27dba705dc2a7931557b618ef87fbfc7c3e4 Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Thu, 16 Jul 2020 11:50:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20dialog=20ajax=20=E7=9A=84?= =?UTF-8?q?=E5=A4=84=E7=90=86,=E5=87=BA=E9=94=99=E4=B8=8D=E5=BA=94?= =?UTF-8?q?=E8=AF=A5=E5=85=B3=E9=97=AD=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderers/Form/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/renderers/Form/index.tsx b/src/renderers/Form/index.tsx index 1fdbf67c6..b568563fb 100644 --- a/src/renderers/Form/index.tsx +++ b/src/renderers/Form/index.tsx @@ -761,7 +761,12 @@ export default class Form extends React.Component { action.reload && this.reloadTarget(action.reload, store.data); action.close && this.closeTarget(action.close); }) - .catch(() => {}); + .catch(e => { + onFailed && onFailed(e, store.errors); + if (throwErrors) { + throw e; + } + }); } else if (action.actionType === 'reload') { store.setCurrentAction(action); action.target && this.reloadTarget(action.target, data);