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() {