1. 设备详情拆分
2. 修改bug
3. logo ico
This commit is contained in:
Zy
2026-10-21 17:05:14 +08:00
parent eeb842d278
commit 485759747c
16 changed files with 417 additions and 325 deletions

View File

@@ -75,7 +75,7 @@ export default defineConfig(({mode, command}) => {
// 目标地址:
// - 当 VITE_LOCALHOST === 'true' 时,转发到本地后端 http://localhost:5660
// - 否则转发到环境变量 VITE_BASE_API 指定的远程后端地址
target: env.VITE_LOCALHOST === 'true' ? 'http://localhost:5660' : env.VITE_BASE_API,
target: env.VITE_LOCALHOST === 'true' ? 'http://localhost:5660' : env.VITE_APP_BASE_API,
// 将请求头中的 Host 改为 target 的域名,避免后端校验 Host 失败
changeOrigin: true,
// 同时代理 WebSocket 连接(如实时聊天、通知等场景)