diff --git a/src/views/layout/components/Navbar.vue b/src/views/layout/components/Navbar.vue index 0d9ce643..66fe0dc5 100644 --- a/src/views/layout/components/Navbar.vue +++ b/src/views/layout/components/Navbar.vue @@ -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 + } }) } }