智慧教务系统
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.
 
 
 
 
 
 

25 lines
726 B

// 环境变量配置
const env = process.env.VUE_APP_ENV || 'development'
const isMockEnabled = process.env.VUE_APP_MOCK_ENABLED === 'true' || false // 默认禁用Mock优先模式,仅作为回退
const isDebug = process.env.VUE_APP_DEBUG === 'true' || true // 默认启用调试模式
// API配置 - 支持环境变量
const Api_url = process.env.VUE_APP_API_URL || 'http://localhost:20080/api'
const img_domian = process.env.VUE_APP_IMG_DOMAIN || 'http://localhost:20080/'
// 备用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
}