Skip to content

Commit

Permalink
fix: fix incorrect page redirection after logout
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Oct 30, 2022
1 parent b4953ae commit 2899649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const Header = () => {
showSuccess('注销成功!');
userDispatch({ type: 'logout' });
localStorage.removeItem('user');
navigate('/user');
navigate('/login');
}

return (
Expand Down

0 comments on commit 2899649

Please sign in to comment.