Navbar: workaround NodeJS missing location.reload
This commit is contained in:
parent
d477ae507b
commit
e58c9c7f6f
1 changed files with 3 additions and 1 deletions
|
@ -38,7 +38,9 @@ export default {
|
|||
},
|
||||
logout() {
|
||||
this.$store.dispatch('LogOut').then(() => {
|
||||
location.reload()// In order to re-instantiate the vue-router object to avoid bugs
|
||||
if (location.reload) {
|
||||
location.reload() // In order to re-instantiate the vue-router object to avoid bugs
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue