From 48994438d8eaa419cb660154c01385096e5fdb15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=9A=E7=A5=96=E6=9C=9B?= <573413756@qq.com> Date: Mon, 10 Oct 2022 20:50:38 +0800 Subject: [PATCH] router jump to login when logout --- xiuosiot-frontend/src/layout/components/Navbar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xiuosiot-frontend/src/layout/components/Navbar.vue b/xiuosiot-frontend/src/layout/components/Navbar.vue index 1580b5e..a592add 100644 --- a/xiuosiot-frontend/src/layout/components/Navbar.vue +++ b/xiuosiot-frontend/src/layout/components/Navbar.vue @@ -35,7 +35,7 @@ export default { }, async logout() { await this.$store.dispatch('user/logout') - this.$router.push(`/login?redirect=${this.$route.fullPath}`) + this.$router.push('/login') } } }