From f6ac139bf416f98c3a3d28f6b1d80e4598bd648f Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期日, 29 九月 2024 18:41:20 +0800
Subject: [PATCH] ll

---
 screen/vite.config.js |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/screen/vite.config.js b/screen/vite.config.js
index ca4f95a..0d47c47 100644
--- a/screen/vite.config.js
+++ b/screen/vite.config.js
@@ -14,5 +14,15 @@
     alias: {
       '@': fileURLToPath(new URL('./src', import.meta.url))
     }
-  }
+  },
+  server: {
+    proxy: {
+      "/gateway_interface": {
+        target: "http://192.168.0.103:10010",
+        // target: "https://xiaoxianlianqi.cn/gateway_interface",
+        changeOrigin: true,
+        rewrite: (path) => path.replace(/^\/gateway_interface/, ""),
+      },
+    },
+  },
 })

--
Gitblit v1.9.3