Browse Source

per[litemall-admin]: 退出优化。

Junling Bu 5 years ago
parent
commit
7a34bbe64e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      litemall-admin/src/views/layout/components/Navbar.vue

+ 1 - 1
litemall-admin/src/views/layout/components/Navbar.vue

@@ -85,7 +85,7 @@ export default {
     },
     },
     logout() {
     logout() {
       this.$store.dispatch('LogOut').then(() => {
       this.$store.dispatch('LogOut').then(() => {
-        location.reload()// In order to re-instantiate the vue-router object to avoid bugs
+        this.$router.push(`/login?redirect=${this.$route.fullPath}`)
       })
       })
     }
     }
   }
   }