浏览代码

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

Junling Bu 6 年之前
父节点
当前提交
7a34bbe64e
共有 1 个文件被更改,包括 1 次插入1 次删除
  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() {
       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}`)
       })
     }
   }