1234567891011121314151617181920 |
- const CONFIG = {
- // 开发环境配置
- development: {
- assetsPath: '/static', // 静态资源路径
- baseUrl: 'https://m.geidcp.com/api/', // 后台接口请求地址
- hostUrl: 'https://m.geidcp.com/api/', // H5地址(前端运行地址)
- websocketUrl: '', // websocket服务端地址
- weixinAppId: '' // 微信公众号appid
- },
- // 生产环境配置
- production: {
- assetsPath: '/static', // 静态资源路径
- baseUrl: 'https://m.geidcp.com/api', // 后台接口请求地址
- hostUrl: 'https://m.geidcp.com/api', // H5地址(前端运行地址)
- websocketUrl: '', // websocket服务端地址
- weixinAppId: '' // 微信公众号appid
- }
- };
- export default CONFIG[process.env.NODE_ENV];
|