From 72a4c695a1748729bf793745389f8fd4686abd02 Mon Sep 17 00:00:00 2001 From: lnn19986213 <1667908750@qq.com> Date: Tue, 21 May 2024 16:22:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vite.config.js b/vite.config.js index 7594a2c..17ea0ef 100644 --- a/vite.config.js +++ b/vite.config.js @@ -15,8 +15,8 @@ export default defineConfig({ // 第一个代理 "/api": { // 匹配到啥来进行方向代理 - target: "http://192.168.2.42:8095/", //周源 - // target: "http://220.191.238.50:996/", //周源 + // target: "http://192.168.2.42:8095/", //本地 + target: "http://220.191.238.50:996/", //线上 changeOrigin: true, //是否支持跨域 //rewrite: (path) => path.replace(/^\/api/, '') // 如果不需要api 直接把路径上的api 替换成空,这个 },