From 995e18d3993c852cbb2fa5b87cfc01e363879974 Mon Sep 17 00:00:00 2001 From: tonytech Date: Tue, 3 Mar 2026 14:19:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E4=BF=AE=E5=A4=8D=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E5=BC=80=E5=8F=91=E4=BB=A3=E7=90=86=E6=8C=87=E5=90=91?= =?UTF-8?q?=20Java=20=E5=90=8E=E7=AB=AF=E7=AB=AF=E5=8F=A3=208080?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reading-platform-frontend/vite.config.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reading-platform-frontend/vite.config.ts b/reading-platform-frontend/vite.config.ts index 91bfe75..b73468b 100644 --- a/reading-platform-frontend/vite.config.ts +++ b/reading-platform-frontend/vite.config.ts @@ -46,12 +46,11 @@ export default defineConfig({ host: true, proxy: { '/api': { - target: 'http://localhost:3000', + target: 'http://localhost:8080', changeOrigin: true, - rewrite: (path) => path.replace(/^\/api/, '/api'), }, '/uploads': { - target: 'http://localhost:3000', + target: 'http://localhost:8080', changeOrigin: true, }, },