This commit is contained in:
eric
2025-08-28 19:53:27 +08:00
parent f6dc0091f7
commit bd23a91a58
3 changed files with 11 additions and 5 deletions

View File

@@ -41,11 +41,14 @@ export default defineConfig(({ command }) => {
proxy: {
// Zero3 后端 WebSocket如果你有 ws 接口)
"/api/command": {
target: "ws://live.local:8081",
// target: "ws://live.local:8081",
target: "ws://localhost:8081",
ws: true,
},
// Zero3 后端 HTTP
"/api": "http://live.local:8081",
// "/api": "http://live.local:8081",
"/api": "http://localhost:8081",
},
},
};