fix(sidebar): redirect to splash screen after logout
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user