123456789101112131415161718192021222324252627282930313233343536 |
- // 开发者环境:开|关 【注:方便微信小程序发行测试】
- 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: 'https://shop.xianghuaqi.net.cn',
- // 生产环境
- production: IS_H5 ? location.origin : 'https://shop.xianghuaqi.net.cn',
- }
- const baseURL = SWITCH_DEVELOPMENT ? baseURLMap['development'] : baseURLMap[process.env.NODE_ENV]
- /** E API BaseURL **/
- module.exports = {
- version: '2.0.1.20220929', // 版本号
- baseURL, // API Base URL
- basePath: '/mobile'
- }
|