10/21
1. 设备详情拆分 2. 修改bug 3. logo ico
This commit is contained in:
@@ -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 连接(如实时聊天、通知等场景)
|
||||
|
||||
Reference in New Issue
Block a user