Explorar o código

本地转发了 不需要了

yb hai 13 horas
pai
achega
0c2fa3c8cf
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      vite.config.ts

+ 5 - 5
vite.config.ts

@@ -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',