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.
36 lines
670 B
36 lines
670 B
|
|
|
|
// 开发者环境:开|关 【注:方便微信小程序发行测试】
|
|
const SWITCH_DEVELOPMENT = false
|
|
|
|
/** S 是否H5端 **/
|
|
// #ifdef H5
|
|
const IS_H5 = true
|
|
// #endif
|
|
|
|
// #ifndef H5
|
|
const IS_H5 = false
|
|
// #endif
|
|
/** E 是否H5端 **/
|
|
|
|
|
|
/** S API BaseURL **/
|
|
const baseURLMap = {
|
|
// 开发环境
|
|
development: 'http://loca.ahbcqz.com',
|
|
// 生产环境
|
|
production: IS_H5 ? location.origin : 'http://loca.ahbcqz.com/',
|
|
}
|
|
|
|
const baseURL = SWITCH_DEVELOPMENT ? baseURLMap['development'] : baseURLMap[process.env.NODE_ENV]
|
|
|
|
|
|
/** E API BaseURL **/
|
|
|
|
|
|
module.exports = {
|
|
version: '2.2.2.20230322', // 版本号
|
|
baseURL, // API Base URL
|
|
basePath: '/mobile'
|
|
}
|
|
|
|
|