From 10b271e3d87c63de04e1d16e9eb88dd6b842d07e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E4=B8=81?= Date: Sat, 2 May 2026 20:30:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=90=8E=E7=AB=AF=E4=BB=A3=E7=90=86=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 0889fbb..6d372ba 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -37,7 +37,7 @@ export default defineConfig({ host: true, proxy: { '/api': { - target: 'http://localhost:7777', // 测试服务器地址,可根据实际后端地址修改 + target: 'http://localhost:8888', // 测试服务器地址,可根据实际后端地址修改 changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, ''), // 如果后端接口本身没有 /api 前缀,需要将其重写掉 },