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