Selaa lähdekoodia

fix: logout exception

Casper Dai 3 vuotta sitten
vanhempi
sitoutus
e0481c1dad
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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}`)
     }
   }
 }