// API 配置文件 window.apiConfig = { // 根据环境变量配置不同的基础URL baseURL: { development: 'http://localhost:9100/', debug: 'http://localhost:9100/', production: 'http://localhost:9100/' }, // 大屏地址配置 dataViewUrl: { development: 'http://localhost:9200/', debug: 'http://localhost:9200/', // 调试环境也使用相同配置 production: 'http://localhost:9200/' }, // API路径配置 apiPaths: { replaceToken: '/api/User/replaceToken', getDataViewAccessToken: 'api/auth/getDataViewAccessToken' }, // 数据刷新间隔配置(毫秒) refreshInterval: { development: 30000, // 开发环境30秒刷新一次 debug: 60000, // 调试环境1分钟刷新一次 production: 60000 // 生产环境1分钟刷新一次 } };