From 183d98a6990fe90491c292d7092c18a84865c014 Mon Sep 17 00:00:00 2001 From: qingfeng1121 Date: Mon, 15 Dec 2025 17:54:13 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=9B=B4=E6=96=B0API=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E7=9B=AE=E6=A0=87=E5=9C=B0=E5=9D=80=E4=B8=BA=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E7=8E=AF=E5=A2=83?= 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 9992ba0..6e70e4d 100644 --- a/vite.config.js +++ b/vite.config.js @@ -30,7 +30,8 @@ export default defineConfig({ proxy: { // 配置API代理 '/api': { - target: 'http://localhost:7071', + target: 'http://www.qf1121.top', + // target: 'http://localhost:7071', changeOrigin: true, rewrite: (path) => path }