hejianhao
2026-05-15 04f62cd2c47ee7760e968495c6ea96e817954926
refs
用户 hejianhao <15708179461@qq.com>
星期五, 五月 15, 2026 15:00 +0800
提交者 hejianhao <15708179461@qq.com>
星期五, 五月 15, 2026 15:00 +0800
提交04f62cd2c47ee7760e968495c6ea96e817954926
目录 632f9bf902d4dfb1bd863d88398a0d66747c0029 目录 | zip | gz
parent 1f61085554ad349d96ce5b4df87295e0ad9c93e6 查看 | 对比
refactor(robotaxi/home): 重构首页代码,拆分组件与自定义hook

将Robotaxi首页的臃肿业务逻辑抽离为独立的自定义hook与公共组件,新增常量文件统一管理首页配置,优化城市状态、订单WebSocket、天气、热修轮询等模块的封装,大幅简化首页页面代码,提升整体可维护性与可读性。
9个文件已添加
2个文件已修改
2025 ■■■■■ 已修改文件
src/pages/robotaxi/home/components/home-content-panel.tsx 152 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/pages/robotaxi/home/components/home-map-panel.tsx 172 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/pages/robotaxi/home/components/home-overlay-layer.tsx 85 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/pages/robotaxi/home/constants.ts 40 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/pages/robotaxi/home/hooks/use-city-state.ts 37 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/pages/robotaxi/home/hooks/use-fence-manager.ts 193 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/pages/robotaxi/home/hooks/use-hotfix-check.ts 95 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/pages/robotaxi/home/hooks/use-marketing.ts 126 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/pages/robotaxi/home/hooks/use-order-ws.ts 77 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/pages/robotaxi/home/hooks/use-weather.ts 81 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
src/pages/robotaxi/home/index.tsx 967 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史