Files
template-10579/config/env.ts
赵忠林 c3c8fa2c3b feat(credit): 完善客户详情页面功能
- 移除自定义导航栏样式配置
- 添加员工列表加载和缓存机制
- 实现客户状态显示和状态选项功能
- 添加客户电话号码提取和展示功能
- 集成跟进人员标签显示功能
- 实现客户联系方式拨打功能
- 添加跟进历史记录存储机制
- 更新页面背景色和样式
- 添加固定底部跟进按钮
- 修改API基础URL配置
2026-03-20 01:13:03 +08:00

45 lines
986 B
TypeScript

// 环境变量配置
export const ENV_CONFIG = {
// 开发环境
development: {
// API_BASE_URL: 'http://127.0.0.1:9200/api',
API_BASE_URL: 'https://ysb-api.websoft.top/api',
APP_NAME: '开发环境',
DEBUG: 'true',
},
// 生产环境
production: {
API_BASE_URL: 'https://ysb-api.websoft.top/api',
APP_NAME: '易赊宝',
DEBUG: 'false',
},
// 测试环境
test: {
// API_BASE_URL: 'http://127.0.0.1:9200/api',
API_BASE_URL: 'https://ysb-api.websoft.top/api',
APP_NAME: '测试环境',
DEBUG: 'true',
}
}
// 获取当前环境配置
export function getEnvConfig() {
const env = process.env.NODE_ENV || 'development'
if (env === 'production') {
return ENV_CONFIG.production
} else { // @ts-ignore
if (env === 'test') {
return ENV_CONFIG.test
} else {
return ENV_CONFIG.development
}
}
}
// 导出环境变量
export const {
API_BASE_URL,
APP_NAME,
DEBUG
} = getEnvConfig()