rediret 和 reload 都执行好了

This commit is contained in:
liaoxuezhi 2019-07-10 10:52:11 +08:00
parent c0cb2f89e7
commit dc8d8f77ee

View File

@ -602,11 +602,8 @@ export default class Form extends React.Component<FormProps, object> {
await this.openFeedback(action.feedback, store.data);
}
action.reload
? this.reloadTarget(action.reload, store.data)
: action.redirect
? env.updateLocation(filter(action.redirect, store.data))
: null;
action.redirect && env.updateLocation(filter(action.redirect, store.data));
action.reload && this.reloadTarget(action.reload, store.data);
})
.catch(() => { });
} else if (action.actionType === 'reload') {