diff --git a/src/components/GlobalHeader/RightContent.tsx b/src/components/GlobalHeader/RightContent.tsx index 880b8a41ae31c8780dc318ca84c665b11c57a585..051baa54725428cc7b9df5dd4bd227b586cda06d 100644 --- a/src/components/GlobalHeader/RightContent.tsx +++ b/src/components/GlobalHeader/RightContent.tsx @@ -103,6 +103,14 @@ class GlobalHeaderRight extends Component { return; } const { key } = event; + + if (key === 'logout') { + const { dispatch } = this.props; + dispatch!({ + type: 'login/logout', + }); + return; + } router.push(`/account/${key}`); }; render() { @@ -117,11 +125,11 @@ class GlobalHeaderRight extends Component { - {/* */} - {/* + + - */} + ); const noticeData = this.getNoticeData();