|
|
@@ -62,11 +62,11 @@ export default defineConfig({
|
|
|
open: true,
|
|
|
proxy: {
|
|
|
// PTZ 摄像头控制 (必须放在 /api 之前,更具体的路径优先匹配)
|
|
|
- '/api/camera/control': {
|
|
|
- target: 'http://localhost:3002',
|
|
|
- changeOrigin: true,
|
|
|
- rewrite: (path) => path.replace(/^\/api\/camera\/control/, '')
|
|
|
- },
|
|
|
+ // '/api/camera/control': {
|
|
|
+ // target: 'http://localhost:3002',
|
|
|
+ // changeOrigin: true,
|
|
|
+ // rewrite: (path) => path.replace(/^\/api\/camera\/control/, '')
|
|
|
+ // },
|
|
|
// 后端 API
|
|
|
'/api': {
|
|
|
target: 'https://tg-live-game.pwtk.cc',
|