feat: 订单轮询 + 竞态防护 + 性能优化 (OrdersPage 完善)

- startPolling: 基于 Map<orderId, timer> 的多订单并发轮询
    幂等启动(重复点击防重)+ 局部 state 更新 + 终态全量刷新
  - fetchOrders: AbortController 防竞态,切换筛选/分页时取消旧请求
    AbortError 静默吞掉,不污染 error state
  - columns: useMemo 稳定引用,依赖 [token.colorPrimary, handleContinuePay]
  - 卸载清理: abort + clearTimeout 双重防护
  - 文档同步: CHANGELOG / TODO 更新至 0.0.21
This commit is contained in:
2026-06-15 19:58:25 +08:00
parent 06e6486aa3
commit 72a0290693
3 changed files with 94 additions and 19 deletions

View File

@@ -15,9 +15,12 @@
### 路由与页面
- [x] 账户信息页面(`/account``AccountInfo.tsx`AuthAPI.getUserInfo() 驱动
- [x] 充值页面(`/recharge``RechargePage.tsx`,创建订单 → 支付状态跟踪
- [x] 订单明细页面(`/orders``OrdersPage.tsx`,状态筛选 + 分页 + 继续支付 + 轮询
- [ ] 合规素材库页面(`/compliance-assets`
- [ ] 项目管理页面(`/projects`,企业版)
- [ ] 会员/充值/消费记录/订单明细页面
- [ ] 会员页面`/vip`
- [ ] 消费记录页面
### 导航栏