refactor(collect): 收藏功能改为 API 驱动模式
- 移除乐观更新逻辑,改为 API 成功后更新 UI
- useCollectOperation 返回 { success, newStatus } 对象
- ArticleCard/MaterialCard 使用 async/await 等待 API 响应
- ListItemActions 添加 @tap.stop 防止事件冒泡
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Showing
4 changed files
with
63 additions
and
55 deletions
-
Please register or login to post a comment