zdl
|
b89837d22e
|
feat(DeepAnalysis): 实现 Tab 懒加载,按需请求数据
- DeepAnalysis/index.js: 重构为懒加载模式
- 添加 TAB_API_MAP 映射 Tab 与接口关系
- 战略分析/业务结构共享 comprehensive-analysis 接口
- 产业链/发展历程按需加载对应接口
- 使用 loadedApisRef 缓存已加载状态,避免重复请求
- 各接口独立 loading 状态管理
- 添加 stockCode 竞态条件保护
- DeepAnalysisTab/index.tsx: 支持受控模式
- 新增 activeTab/onTabChange props
- loading 状态下保持 Tab 导航可切换
- types.ts: 新增 DeepAnalysisTabKey 类型和相关 props
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-12 15:20:37 +08:00 |
|