From 30014cc9360fa2e139f9399544bd5dffac92ac13 Mon Sep 17 00:00:00 2001 From: Furrium Network Date: Sun, 9 Aug 2026 12:30:08 +0800 Subject: [PATCH] Update config.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将BASEURL改为了相对路径 --- config.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/config.js b/config.js index dc40940..5aaf31c 100644 --- a/config.js +++ b/config.js @@ -6,11 +6,8 @@ const CONFIG = { // ===== 必填 ===== - // 后端 API 地址 - // - Docker 部署:http://backend:3000/api - // - 本地开发:http://localhost:3000/api - // - 生产环境:https://你的域名/api - API_BASE_URL: 'http://localhost:3000/api', + + API_BASE_URL: '/api', // ===== 可选 ===== @@ -22,4 +19,4 @@ const CONFIG = { }; // ===== 不要修改下面 ===== -if (typeof module !== 'undefined' && module.exports) module.exports = CONFIG; \ No newline at end of file +if (typeof module !== 'undefined' && module.exports) module.exports = CONFIG;