Update config.js

将BASEURL改为了相对路径
This commit is contained in:
Furrium Network authored and GitHub committed 2026-08-09 12:30:08 +08:00
1 parent 89e37cd48d
commit 30014cc936
1 file changed
+3 -6
+3 -6
View File
@@ -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;
if (typeof module !== 'undefined' && module.exports) module.exports = CONFIG;