refactor(sidebar-screen): update navigation to replace splash route on logout
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
/**
|
||||
* BrowserHintOverlay 浏览器提示
|
||||
*
|
||||
*
|
||||
*
|
||||
* 用途:在应用内浏览器(WebView、微信内置浏览器等)中显示提示,
|
||||
* 引导用户使用外部浏览器访问。
|
||||
*
|
||||
|
||||
@@ -70,7 +70,7 @@ export function SidebarScreen() {
|
||||
userDispatch({ type: "UserClearLocal" });
|
||||
authDispatch({ type: "AuthLogoutSubmitted" });
|
||||
void signOut({ redirect: false });
|
||||
navigator.openChat({ replace: true });
|
||||
navigator.replace(ROUTES.splash, { scroll: false });
|
||||
};
|
||||
|
||||
// 状态派生:未登录 / 已登录未 VIP / 已登录 VIP
|
||||
|
||||
Reference in New Issue
Block a user