fix: production deployment improvements and configuration fixes #1
Reference in New Issue
Block a user
Delete Branch "fix/production-deployment-improvements"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
概述
本 PR 修复了生产环境部署过程中遇到的多个关键问题,包括配置硬编码、路径错误、构建失败等问题。
主要改动
1. 修复二维码地址硬编码问题 🔧
MainDisplay.vue中移动端 URL 被硬编码为http://192.168.1.5:5174VITE_MOBILE_URLwindow.location.origin.env文件动态配置2. 修复音频文件路径问题 🎵
/screen前缀,导致 404 错误display.ts中的音频路径bgm.mp3→/screen/audio/bgm.mp3lottery.mp3→/screen/audio/lottery.mp3fanfare.mp3→/screen/audio/fanfare.mp3