From f7996664c07f6369a80a0b8f02786ca5fc0c8f09 Mon Sep 17 00:00:00 2001 From: "lj7788@126.com" Date: Mon, 30 Jun 2025 11:03:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yanzhu-ui-vue3/vite.config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yanzhu-ui-vue3/vite.config.js b/yanzhu-ui-vue3/vite.config.js index 590989de..3ac37737 100644 --- a/yanzhu-ui-vue3/vite.config.js +++ b/yanzhu-ui-vue3/vite.config.js @@ -39,8 +39,7 @@ export default defineConfig(({ mode, command }) => { }, // https://cn.vitejs.dev/config/#server-proxy "/dev-api": { - //target: "http://localhost:8080", - target: "http://62.234.3.186/prod-api/", + target: "http://localhost:8080", changeOrigin: true, rewrite: (p) => p.replace(/^\/dev-api/, ""), },