瀏覽代碼

本地转发了 不需要了

yb 13 小時之前
父節點
當前提交
0c2fa3c8cf
共有 1 個文件被更改,包括 5 次插入5 次删除
  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',