移除不准确的 feedCount 和 shareCount 字段,新增用户主页入口
- 删除 UserProfile.feedCount(tab 选择器已失效,改用 feeds.length 展示) - 删除 FeedDetail.shareCount(实际无法获取分享数) - 用户信息栏新增"主页"按钮,点击查看当前登录用户主页 - extractInitialState 补充 userProfile/homeFeed/explore key 提取
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user