You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
786 B
29 lines
786 B
// 环境变量配置
|
|
// const env = 'development'
|
|
const env = 'development'
|
|
const isMockEnabled = false // 默认禁用Mock优先模式,仅作为回退
|
|
const isDebug = false // 默认启用调试模式
|
|
const devurl = 'http://localhost:20080/api'
|
|
const devimgurl = 'http://localhost:20080'
|
|
const produrl = 'https://api.hnhbty.cn/api'
|
|
const prodimgurl = 'https://api.hnhbty.cn'
|
|
// API配置 - 支持环境变量
|
|
const Api_url = env === 'development' ? devurl : produrl
|
|
const img_domian = env === 'development' ? devimgurl : prodimgurl
|
|
|
|
// 备用API地址
|
|
const Api_url_B = 'https://zhifuguanli.zeyan.wang/api/hygl'
|
|
|
|
// 演示模式开关
|
|
const IsDemo = false
|
|
|
|
// 导出配置
|
|
export {
|
|
Api_url,
|
|
img_domian,
|
|
Api_url_B,
|
|
IsDemo,
|
|
isMockEnabled,
|
|
isDebug,
|
|
env
|
|
}
|
|
|