This commit is contained in:
rickcole 2020-06-17 19:02:32 +08:00
parent 20b6445a79
commit 25ba570a3f
2 changed files with 2 additions and 7 deletions

View File

@ -393,8 +393,7 @@ export default class CRUD extends React.Component<CRUDProps, any> {
messages,
pageField,
stopAutoRefreshWhenModalIsOpen,
env,
onClose
env
} = this.props;
if (!selectedItems.length && action.requireSelected !== false) {
@ -446,10 +445,7 @@ export default class CRUD extends React.Component<CRUDProps, any> {
action.reload
? this.reloadTarget(action.reload, data)
: this.search({[pageField || 'page']: 1}, undefined, true);
if (action.close) {
onClose();
this.closeTarget(action.close);
}
action.close && this.closeTarget(action.close);
const redirect = action.redirect && filter(action.redirect, data);
redirect && env.jumpTo(redirect, action);

View File

@ -558,7 +558,6 @@ export default class Form extends React.Component<FormProps, object> {
onReset,
onFinished,
onFailed,
onClose,
redirect,
reload,
target,