From 9d9519354fb304855258a5c97e26dd12c3caf5e1 Mon Sep 17 00:00:00 2001
From: Codex Assistant <codex@example.com>
Date: 星期三, 08 十月 2025 09:08:39 +0800
Subject: [PATCH] fix: 修复前端代理配置,移除不必要的API路径重写规则

---
 web/vite.config.ts |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/web/vite.config.ts b/web/vite.config.ts
index 697b868..95ede8f 100644
--- a/web/vite.config.ts
+++ b/web/vite.config.ts
@@ -10,13 +10,14 @@
     }
   },
   server: {
-    port: 5173,
+    port: 3000,
     open: true,
     proxy: {
       '/api': {
         target: 'http://localhost:8080',
         changeOrigin: true,
-        rewrite: (path) => path.replace(/^\/api/, '/api')
+        // 涓嶉渶瑕侀噸鍐欒矾寰勶紝鍥犱负鍚庣鐨刢ontext-path灏辨槸/api
+        // rewrite: (path) => path.replace(/^\/api/, '/api')
       }
     }
   },

--
Gitblit v1.8.0