Browse Source

修复退出后自动跳转到登录页

pull/53/head
黄建峰 9 years ago
parent
commit
f37419cafd
  1. 4
      src/layouts/BasicLayout.js

4
src/layouts/BasicLayout.js

@ -78,6 +78,10 @@ class BasicLayout extends React.PureComponent {
}
onMenuClick = ({ key }) => {
if (key === 'logout') {
this.props.dispatch({
type: 'logout/logoutSubmit',
payload: { status: undefined },
});
this.props.dispatch(routerRedux.push('/user/login'));
}
}

Loading…
Cancel
Save