glhcp/uniapp/config/app.js

37 lines
703 B
JavaScript
Raw Normal View History

2023-08-10 06:59:52 +00:00
// 开发者环境:开|关 【注:方便微信小程序发行测试】
const SWITCH_DEVELOPMENT = false
/** S 是否H5端 **/
// #ifdef H5
const IS_H5 = true
// #endif
// #ifndef H5
const IS_H5 = false
// #endif
/** E 是否H5端 **/
2023-10-09 07:31:56 +00:00
// https://glh.dev.scdxtc.cn
2023-08-10 06:59:52 +00:00
/** S API BaseURL **/
const baseURLMap = {
// 开发环境
2023-10-09 07:31:56 +00:00
development: 'https://www.gonglehui.com',
2023-08-10 06:59:52 +00:00
// 生产环境
2023-10-09 07:31:56 +00:00
production: IS_H5 ? location.origin : 'https://www.gonglehui.com',
2023-08-10 06:59:52 +00:00
}
const baseURL = SWITCH_DEVELOPMENT ? baseURLMap['development'] : baseURLMap[process.env.NODE_ENV]
/** E API BaseURL **/
module.exports = {
version: '1.9.3.20220609', // 版本号
baseURL, // API Base URL
basePath: '/mobile'
}