Files
glt-taro/config/env.js
赵忠林 e0418df018 fix(config): 修正环境配置的接口地址
- 将开发、测试及生产环境的API和服务器地址统一更改为开发环境地址
- 修复 FreezeMoneyModal 中关闭按钮位置样式问题
- 调整 Shop 模块商品详情角标字体内边距,提高视觉舒适度
- 订单确认页调整部分字体大小,提高显示效果一致性
- 修改 Dealer 模块待使用金额弹窗逻辑,允许金额为0时也显示弹窗
2026-04-10 02:08:56 +08:00

44 lines
1.1 KiB
JavaScript

// 环境变量配置
// ============ 环境切换开关(修改这里即可切换环境)============
// 可选值: 'development' | 'test' | 'production'
const CURRENT_ENV = 'production'
// ===========================================================
export const ENV_CONFIG = {
// 开发环境
development: {
API_BASE_URL: 'https://glt-dev-api.websoft.top/api',
SERVER_API_URL: 'https://glt-dev-server.websoft.top/api',
APP_NAME: '开发环境',
DEBUG: 'true',
},
// 测试环境
test: {
API_BASE_URL: 'https://glt-dev-api.websoft.top/api',
SERVER_API_URL: 'https://glt-dev-server.websoft.top/api',
APP_NAME: '测试环境',
DEBUG: 'true',
},
// 生产环境
production: {
API_BASE_URL: 'https://glt-dev-api.websoft.top/api',
SERVER_API_URL: 'https://glt-dev-server.websoft.top/api',
APP_NAME: '桂乐淘',
DEBUG: 'false',
},
}
// 获取当前环境配置
export function getEnvConfig() {
return ENV_CONFIG[CURRENT_ENV]
}
// 导出环境变量
export const {
API_BASE_URL,
SERVER_API_URL,
APP_NAME,
DEBUG
} = getEnvConfig()