Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-06-13 10:13:21 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
61d82b97fa7560bd84630d6adc02207aaefd531a
61d82b97
1 parent
6336a3a0
fix(profile): 使用路由替换直接跳转首页
修复登出后直接修改 window.location 导致的页面刷新问题,改为使用路由跳转首页
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
src/views/profile/ProfilePage.vue
src/views/profile/ProfilePage.vue
View file @
61d82b9
...
...
@@ -173,7 +173,9 @@ const handleCheckInData = (data) => {
const { logout } = useAuth();
const handleLogout = () => {
logout();
window.location.href = import.meta.env.VITE_BASE || '/';
// window.location.href = import.meta.env.VITE_BASE || '/';
// 返回首页
router.replace({ path: '/' });
};
// Handle menu item click
...
...
Please
register
or
login
to post a comment