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"
}
})
}