mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 10:59:42 +08:00
优化 dialog ajax 的处理,出错不应该关闭弹窗
This commit is contained in:
parent
5636d51712
commit
50aa27dba7
@ -761,7 +761,12 @@ export default class Form extends React.Component<FormProps, object> {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user