/* * @Author: 文帅 * @Date: 2022-03-08 16:37:24 * @LastEditTime: 2022-04-20 17:04:23 * @LastEditors: 狼牙 * @Description: */ const currentConfig = { downloadAppUrl: 'https://m.winhc.cn/wx-mobile/download/index.html', } const developmentConfig = { name: 'development', baseUrl: 'https://twww.winhc.net/api', commonUrl:'https://tm.winhc.net/wx-mobile/newMobile/#/', ...currentConfig } const testConfig = { name: 'test', baseUrl: 'https://twww.winhc.net/api', commonUrl:'https://tm.winhc.net/wx-mobile/newMobile/#/', ...currentConfig } const productionConfig = { name: 'production', baseUrl: 'https://www.winhc.net/api', commonUrl:'https://m.winhc.cn/wx-mobile/newMobile/#/', ...currentConfig } const env = [developmentConfig, testConfig, productionConfig] export const config = env.find(item => item.name === import.meta.env.MODE )!