From 3350e38250cc341e454c1fc5fcb18784e42b3bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=9A=E7=A5=96=E6=9C=9B?= <573413756@qq.com> Date: Tue, 11 Oct 2022 14:10:18 +0800 Subject: [PATCH] logout jump to home page --- 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 a592add..872ef11 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') + this.$router.push('/home') } } }