From 80116c77f6eab90ae6031b081e9611189ddd1548 Mon Sep 17 00:00:00 2001 From: clay <20932067@zju.edu.cn> Date: Mon, 15 Jul 2024 22:23:09 +0800 Subject: [PATCH] =?UTF-8?q?feat=20:=20=E8=B4=A6=E5=8F=B7=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/navbar/index.vue | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/src/layout/navbar/index.vue b/src/layout/navbar/index.vue index f186f17..dfc74ab 100644 --- a/src/layout/navbar/index.vue +++ b/src/layout/navbar/index.vue @@ -5,7 +5,7 @@
-
+
{{ userInfo.nickName }}
{{ userInfo.nickName }} @@ -17,7 +17,7 @@
  • 主次账号切换
  • - + {{ item.nickName }} {{ item.nickName }} @@ -108,23 +108,13 @@ const handleVisitedP = () => { }) } -const taskClick = () => { - router.push('/') -} - const accountChange = (userId) => { switchAccount(userId).then(res => { - if (res.code == 1000) { + if (res.code === 1000) { visitedP.value = !visitedP.value authStore.userLogout() setToken(res.data) - console.log('router',route) - if(route.path!=='/'){ - - } - location.reload() - // router.push('/home') - visitedP.value = false + window.location.href = "/home" } }) }