fix(user): 修复冷启动时接口抢在登录态前请求的竞态问题
- 新增 waitForLoginStatusReady 方法供外部等待登录态就绪 - checkLoginStatus 使用 Promise 缓存避免并发重复调用 - 首页 fetchHotArticles 调用前等待登录态初始化完成 - 清除首页残留的导航栏标题配置 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Showing
3 changed files
with
40 additions
and
2 deletions
-
Please register or login to post a comment