sss 2 years ago
parent
commit
c81e740f72
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/layout/components/Navbar.vue

+ 1 - 1
src/layout/components/Navbar.vue

@@ -122,7 +122,7 @@ export default {
     },
     logout() {
       this.$store.dispatch('LogOut').then(() => {
-        location.reload()
+        this.$router.push({ path: this.redirect || '/login' })
       })
     },
     getTime() {