This commit is contained in:
2025-09-16 16:39:48 +08:00
commit c5808e85e2
336 changed files with 695951 additions and 0 deletions

24
src/config/api.js Normal file
View File

@@ -0,0 +1,24 @@
// API 基础地址
// const BASE_URL = 'https://wxapi.est-live.cn';
// const BASE_URL = 'http://localhost:3007';
const BASE_URL = 'http://192.168.42.188:3007';
// const BASE_URL = '';
// API 路径配置
const API_URLS = {
// 竞赛相关
COMPETITION: {
DATA: `${BASE_URL}/api/competition/data`,
STATUS: `${BASE_URL}/api/competition/status`,
START: `${BASE_URL}/api/competition/start`,
END: `${BASE_URL}/api/competition/end`,
},
// 连接图相关
CONNECTION: {
MAP: `${BASE_URL}/api/connectionMap`,
MAP_WITH_SCENE: (scene) => `${BASE_URL}/api/connectionMap?scene=${scene}`,
INIT: `${BASE_URL}/api/initConnectionMap`,
},
};
export { BASE_URL, API_URLS };