diff --git a/src/app/chat/components/chat-quota-exhausted-banner.tsx b/src/app/chat/components/chat-quota-exhausted-banner.tsx index 96dbb2b4..b19addf1 100644 --- a/src/app/chat/components/chat-quota-exhausted-banner.tsx +++ b/src/app/chat/components/chat-quota-exhausted-banner.tsx @@ -45,7 +45,7 @@ export function ChatQuotaExhaustedBanner({ onUnlock(); return; } - router.push(ROUTES.subscription); + router.push(ROUTES.auth); }; return ( diff --git a/src/stores/auth/auth-status-checker.tsx b/src/stores/auth/auth-status-checker.tsx index 21023c1c..c6de20b0 100644 --- a/src/stores/auth/auth-status-checker.tsx +++ b/src/stores/auth/auth-status-checker.tsx @@ -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 的同模式) - * * 与 平级: * - AuthStatusChecker: 启动时一次性 init("自己启动时同步") * - OAuthSessionSync: 持续监听 NextAuth session("别人在写")