移除不准确的 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
-1
View File
@@ -194,7 +194,6 @@ export function FeedDetail({ feedId, xsecToken, onClose, onUserClick }: Props) {
{ label: '点赞', value: detail.likeCount },
{ label: '收藏', value: detail.collectCount },
{ label: '评论', value: detail.commentCount },
{ label: '分享', value: detail.shareCount },
].map((s) => (
<div key={s.label} className="bg-dark-bg rounded-lg p-3 text-center">
<p className="text-lg font-bold">{formatNumber(s.value)}</p>