From 2cf5268f7ddf5df6aebec70c6a17e1cd0c2273d6 Mon Sep 17 00:00:00 2001 From: insistence <3055204202@qq.com> Date: Fri, 28 Jun 2024 14:31:22 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=90=86loc?= =?UTF-8?q?alhost=E4=B8=BA127.0.0.1=E4=BB=A5=E9=80=82=E9=85=8D=E9=83=A8?= =?UTF-8?q?=E5=88=86=E8=AE=BE=E5=A4=87=E8=A7=A3=E6=9E=90localhost=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-fastapi-frontend/vite.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-fastapi-frontend/vite.config.js b/ruoyi-fastapi-frontend/vite.config.js index e1e8f83..ba9fd12 100644 --- a/ruoyi-fastapi-frontend/vite.config.js +++ b/ruoyi-fastapi-frontend/vite.config.js @@ -31,7 +31,7 @@ export default defineConfig(({ mode, command }) => { proxy: { // https://cn.vitejs.dev/config/#server-proxy '/dev-api': { - target: 'http://localhost:9099', + target: 'http://127.0.0.1:9099', changeOrigin: true, rewrite: (p) => p.replace(/^\/dev-api/, '') }