修复:将叫号音频内联到前端包 #4

Merged
brother7 merged 1 commits from codex/bundled-audio-announcements into main 2026-08-01 12:18:12 +08:00
Collaborator

问题:音频使用 /audio 路径,浏览器预加载仍会向服务端发起独立请求。

实现:将 15 个 WAV 作为 Vite 内联资源编入前端 JS,后端继续仅返回叫号数据/文本。

验证:前端 66 项测试与生产构建通过;dist 中 WAV 文件为 0,含 15 个内联音频数据。

问题:音频使用 /audio 路径,浏览器预加载仍会向服务端发起独立请求。 实现:将 15 个 WAV 作为 Vite 内联资源编入前端 JS,后端继续仅返回叫号数据/文本。 验证:前端 66 项测试与生产构建通过;dist 中 WAV 文件为 0,含 15 个内联音频数据。
brother7 added 1 commit 2026-08-01 12:18:09 +08:00
问题:音频使用 /audio 路径,浏览器预加载仍会向服务端发起独立请求。

实现:将 15 个 WAV 作为 Vite 内联资源编入前端 JS,后端继续仅返回叫号数据/文本。

验证:前端 66 项测试与生产构建通过;dist 中 WAV 文件为 0,含 15 个内联音频数据。
brother7 merged commit 70b00e9546 into main 2026-08-01 12:18:12 +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: wangxuming/XQKqueue#4
No description provided.