Skip to content

Commit

Permalink
修改nav
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Oct 18, 2018
1 parent dade45c commit 63d3a5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/store/modules/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ const user = {
logout().then(res => {
commit('SET_TOKEN', '')
removeToken()
location.reload()
resolve()

})

})
Expand Down
6 changes: 2 additions & 4 deletions src/views/layout/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ Screenfull,
this.$store.dispatch('ToggleSideBar')
},
logout() {
this.$store.dispatch('FedLogOut').then(() => {
location.reload() // 为了重新实例化vue-router对象 避免bug
})
this.$store.dispatch('FedLogOut')
},
changepassword() {
Expand Down Expand Up @@ -98,7 +96,7 @@ Screenfull,
}
.screenfull {
position: absolute;
right: 90px;
right: 120px;
top: 14px;
color: red;
Expand Down

0 comments on commit 63d3a5d

Please sign in to comment.