Navbar: workaround NodeJS missing location.reload

This commit is contained in:
Haelwenn (lanodan) Monnier 2022-08-28 15:20:30 +02:00
parent d477ae507b
commit e58c9c7f6f

View file

@ -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
}
})
}
}