From f37419cafd14226dcd41bf80878feb0b53aa64a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BB=BA=E5=B3=B0?= <645381995@qq.com> Date: Mon, 30 Oct 2017 18:01:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=80=E5=87=BA=E5=90=8E?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=B7=B3=E8=BD=AC=E5=88=B0=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/BasicLayout.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index dde4c996..b0a0bfac 100644 --- a/src/layouts/BasicLayout.js +++ b/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')); } }