From 7a34bbe64ef0c7d7857a3cff5f6b88d8657cc7a7 Mon Sep 17 00:00:00 2001 From: Junling Bu Date: Thu, 5 Mar 2020 21:00:52 +0800 Subject: [PATCH] =?UTF-8?q?per[litemall-admin]:=20=E9=80=80=E5=87=BA?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- litemall-admin/src/views/layout/components/Navbar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litemall-admin/src/views/layout/components/Navbar.vue b/litemall-admin/src/views/layout/components/Navbar.vue index b50f8f46..c46d17af 100644 --- a/litemall-admin/src/views/layout/components/Navbar.vue +++ b/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}`) }) } }