fix(auth): update routing for subscription access

This commit is contained in:
2026-06-17 17:11:34 +08:00
parent d074f1a813
commit afba85e809
2 changed files with 1 additions and 7 deletions
@@ -45,7 +45,7 @@ export function ChatQuotaExhaustedBanner({
onUnlock();
return;
}
router.push(ROUTES.subscription);
router.push(ROUTES.auth);
};
return (
-6
View File
@@ -4,12 +4,6 @@
*
* 派发时机:仅 mount 时一次(`useEffect` deps = `[dispatch]`,永远不重跑)。
*
* 与原 `AuthStatusCheckSubmitted` 的区别:
* - 原版本有两个 useEffect:① mount + ② loginStatus 变化 re-check
* - re-check 是 dead code —— 状态机 onDone 已经把 loginStatus 写对,
* 再读 storage 只会拿到相同值(no-op),徒增死循环防护复杂度
* - 新版本只保留 ①,命名 `AuthInit` 与 `UserInit` 对齐(user-machine 的同模式)
*
* 与 <OAuthSessionSync /> 平级:
* - AuthStatusChecker: 启动时一次性 init"自己启动时同步"
* - OAuthSessionSync: 持续监听 NextAuth session"别人在写"