ソースを参照

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

Junling Bu 5 年 前
コミット
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}`)
       })
     }
   }