移除不准确的 feedCount 和 shareCount 字段,新增用户主页入口

- 删除 UserProfile.feedCount(tab 选择器已失效,改用 feeds.length 展示)
- 删除 FeedDetail.shareCount(实际无法获取分享数)
- 用户信息栏新增"主页"按钮,点击查看当前登录用户主页
- extractInitialState 补充 userProfile/homeFeed/explore key 提取
This commit is contained in:
2026-03-02 15:00:49 +08:00
parent 5a1f88de95
commit e252310f23
9 changed files with 9 additions and 46 deletions
+5
View File
@@ -261,6 +261,11 @@ export function XiaohongshuPage() {
<span className="text-xs text-dark-muted">{status.userId.slice(0, 12)}</span>
)}
</div>
{status.userId && (
<Button size="sm" variant="secondary" onClick={() => setUserView({ userId: status.userId!, xsecToken: '' })}>
</Button>
)}
<Button size="sm" variant="danger" onClick={() => void handleLogout()} loading={logoutLoading}>
退
</Button>