From 375c18a6d2713ff19b22093eec57315992d8333f Mon Sep 17 00:00:00 2001
From: Codex Assistant <codex@example.com>
Date: 星期四, 06 十一月 2025 13:33:52 +0800
Subject: [PATCH] 增加评审下载
---
web/vite.config.ts | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/web/vite.config.ts b/web/vite.config.ts
index 95ede8f..e44174f 100644
--- a/web/vite.config.ts
+++ b/web/vite.config.ts
@@ -10,14 +10,16 @@
}
},
server: {
+ host: '0.0.0.0',
port: 3000,
open: true,
proxy: {
'/api': {
- target: 'http://localhost:8080',
+ // 灏咥PI浠g悊鍥炴湰鍦板悗绔紝渚夸簬瀹屾暣鑱旇皟锛堝悗绔繍琛屽湪 http://127.0.0.1:8080/api锛�
+ target: 'http://127.0.0.1:8080',
changeOrigin: true,
- // 涓嶉渶瑕侀噸鍐欒矾寰勶紝鍥犱负鍚庣鐨刢ontext-path灏辨槸/api
- // rewrite: (path) => path.replace(/^\/api/, '/api')
+ secure: false,
+ // 涓嶉渶瑕侀噸鍐欒矾寰勶紝鍥犱负鍚庣鐨刢ontext-path灏辨槸 /api
}
}
},
--
Gitblit v1.8.0