Ver Fonte

fix: logout exception

Casper Dai há 3 anos atrás
pai
commit
e0481c1dad
1 ficheiros alterados com 1 adições e 1 exclusões
  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}`)
     }
   }
 }