Skip to content

Commit 1d21871

Browse files
committed
fix: remove localStorage when log out
1 parent 61e0da5 commit 1d21871

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/User/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ class NavBar extends Component {
4949
handleLogout() {
5050
this.props.logout().then(rs => {
5151
this.props.history.push('/')
52+
localStorage.removeItem('cnode')
53+
localStorage.removeItem('accesstoken')
5254
})
5355
}
5456
render() {

0 commit comments

Comments
 (0)