Browse Source

feat: 退出登录,清空重定向的页面

luoyali 9 months ago
parent
commit
a95106f20c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/layout/components/Header/components/Avatar.vue

+ 1 - 1
src/layout/components/Header/components/Avatar.vue

@@ -46,7 +46,7 @@ function logout() {
 		// flow.$reset()
 		localStorage.clear()
 		user.logout().then(() => {
-			router.push(`/login?redirect=${route.fullPath}`)
+			router.push(`/login`)
 		})
 	})
 }