Casper Dai преди 3 години
родител
ревизия
e0481c1dad
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/layout/components/Navbar/index.vue

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

@@ -48,8 +48,8 @@ export default {
   },
   methods: {
     async logout () {
+      this.$router.replace('/')
       await this.$store.dispatch('user/logout')
-      this.$router.push(`/login?redirect=${this.$route.fullPath}`)
     }
   }
 }