Update config.js
将BASEURL改为了相对路径
This commit is contained in:
1 parent
89e37cd48d
commit
30014cc936
1 file changed
+3
-6
@@ -6,11 +6,8 @@
|
|||||||
const CONFIG = {
|
const CONFIG = {
|
||||||
// ===== 必填 =====
|
// ===== 必填 =====
|
||||||
|
|
||||||
// 后端 API 地址
|
|
||||||
// - Docker 部署:http://backend:3000/api
|
API_BASE_URL: '/api',
|
||||||
// - 本地开发:http://localhost:3000/api
|
|
||||||
// - 生产环境:https://你的域名/api
|
|
||||||
API_BASE_URL: 'http://localhost:3000/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;
|
||||||
Reference in new issue
Block a user