fix(sidebar): redirect to splash screen after logout

This commit is contained in:
2026-06-17 14:35:28 +08:00
parent 1d7d9cfbfc
commit 0d2a515e51
2 changed files with 1 additions and 8 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ export function SidebarScreen() {
const handleLogoutClick = () => {
authDispatch({ type: "AuthReset" });
userDispatch({ type: "UserLogout" });
router.replace(ROUTES.chat);
router.replace(ROUTES.splash);
};
// 状态派生:未登录 / 已登录未 VIP / 已登录 VIP