refactor(sidebar-screen): update navigation to replace splash route on logout

This commit is contained in:
2026-07-09 18:45:41 +08:00
parent 70c8674b17
commit 747f36cbaf
2 changed files with 1 additions and 3 deletions
@@ -2,8 +2,6 @@
/** /**
* BrowserHintOverlay 浏览器提示 * BrowserHintOverlay 浏览器提示
* *
*
*
* 用途:在应用内浏览器(WebView、微信内置浏览器等)中显示提示, * 用途:在应用内浏览器(WebView、微信内置浏览器等)中显示提示,
* 引导用户使用外部浏览器访问。 * 引导用户使用外部浏览器访问。
* *
+1 -1
View File
@@ -70,7 +70,7 @@ export function SidebarScreen() {
userDispatch({ type: "UserClearLocal" }); userDispatch({ type: "UserClearLocal" });
authDispatch({ type: "AuthLogoutSubmitted" }); authDispatch({ type: "AuthLogoutSubmitted" });
void signOut({ redirect: false }); void signOut({ redirect: false });
navigator.openChat({ replace: true }); navigator.replace(ROUTES.splash, { scroll: false });
}; };
// 状态派生:未登录 / 已登录未 VIP / 已登录 VIP // 状态派生:未登录 / 已登录未 VIP / 已登录 VIP