fix
This commit is contained in:
parent
20b6445a79
commit
25ba570a3f
|
@ -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);
|
||||
|
|
|
@ -558,7 +558,6 @@ export default class Form extends React.Component<FormProps, object> {
|
|||
onReset,
|
||||
onFinished,
|
||||
onFailed,
|
||||
onClose,
|
||||
redirect,
|
||||
reload,
|
||||
target,
|
||||
|
|
Loading…
Reference in New Issue