refactor: 前端 WebSocket 地址改为动态推导,添加 Vite 开发代理 #63

Merged
huanghaosheng merged 1 commits from fix/frontend-proxy into develop 2026-06-14 13:01:33 +08:00
  • websocket.ts: 移除硬编码 localhost:8080,基于 window.location 动态构建 WS URL
  • vite.config.ts: 添加 /ws 和 /api 的 server.proxy 配置
  • 同步更新 02-系统架构.md 和 03-接口文档.md 中的开发环境说明
- websocket.ts: 移除硬编码 localhost:8080,基于 window.location 动态构建 WS URL - vite.config.ts: 添加 /ws 和 /api 的 server.proxy 配置 - 同步更新 02-系统架构.md 和 03-接口文档.md 中的开发环境说明
huanghaosheng added 1 commit 2026-06-14 13:01:30 +08:00
- websocket.ts: 移除硬编码 localhost:8080,基于 window.location 动态构建 WS URL
- vite.config.ts: 添加 /ws 和 /api 的 server.proxy 配置
- 同步更新 02-系统架构.md 和 03-接口文档.md 中的开发环境说明
huanghaosheng merged commit 01026d1846 into develop 2026-06-14 13:01:33 +08:00
huanghaosheng deleted branch fix/frontend-proxy 2026-06-14 13:05:56 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: XEngineers/CamTalk#63