From 37856a5ae159e91661fb5b2b3cd99b101622c533 Mon Sep 17 00:00:00 2001 From: liuyalei Date: Thu, 14 Mar 2024 09:35:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=93=BE=E6=8E=A5=E6=9B=B4=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index 24ab217..30581cd 100644 --- a/vite.config.js +++ b/vite.config.js @@ -20,7 +20,8 @@ export default defineConfig({ // rewrite: (path) => path.replace(/\/test/, ""), //重写真实路径,替换/api }, "^/test": { - target: "http://192.168.2.86:8003/", + // target: "http://192.168.2.86:8003/", + target: "https://yx.cityme.com.cn/", changeOrigin: true, rewrite: path => path.replace(/^\/test/, '/test/main_serve/') },