This commit is contained in:
eric
2025-09-29 13:15:15 +08:00
parent 33793d7370
commit cf94ae2926
55 changed files with 10 additions and 8 deletions

View File

@@ -41,13 +41,13 @@ export default defineConfig(({ command }) => {
proxy: {
// Zero3 后端 WebSocket如果你有 ws 接口)
"/api/command": {
target: "ws://192.168.31.103:8081",
target: `ws://${location.protocol}//${location.hostname}:8081`,
// target: "ws://live.local:8081",
ws: true,
},
// Zero3 后端 HTTP
"/api": "http://192.168.31.103:8081",
"/api": `${location.protocol}//${location.hostname}:8081`,
// "/api": "http://live.local:8081",
},