sss преди 3 години
родител
ревизия
c81e740f72
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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() {