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 | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/web/vite.config.ts b/web/vite.config.ts
index 54dc648..95ede8f 100644
--- a/web/vite.config.ts
+++ b/web/vite.config.ts
@@ -16,7 +16,8 @@
'/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