blob: 879b5554c43a59db9dba92195bebce0c2d47655c [file] [log] [blame]
guangchao.xu1bc4ccc2021-01-19 17:09:26 +08001let config = {}
2
3if (process.env.NODE_ENV === 'development') {
4 // 开发环境
5 config = {
6 // #ifdef H5
7 base_api: "/api", //测试地址
guangchao.xu6cdd45e2021-04-16 17:44:30 +08008 // base_api: "http://172.28.43.23:8089/portal/mobileapi",//本地地址
guangchao.xu1bc4ccc2021-01-19 17:09:26 +08009 // #endif
guangchao.xu6cdd45e2021-04-16 17:44:30 +080010
guangchao.xu1bc4ccc2021-01-19 17:09:26 +080011 // #ifndef H5
12 base_api: 'http://yy.dlsmk.cn:8080/portal/mobileapi',
guangchao.xu6cdd45e2021-04-16 17:44:30 +080013 base_api: 'https://yy.dlsmk.cn/portal/mobileapi',
14 base_api: "http://172.28.43.23:8089/portal/mobileapi",//本地地址
guangchao.xu1bc4ccc2021-01-19 17:09:26 +080015 // #endif
16 }
17
18} else {
19 // 生产环境
20 config = {
guangchao.xu6cdd45e2021-04-16 17:44:30 +080021 base_api: 'https://yy.dlsmk.cn/portal/mobileapi',
guangchao.xu1bc4ccc2021-01-19 17:09:26 +080022 }
guangchao.xu6cdd45e2021-04-16 17:44:30 +080023}
guangchao.xu1bc4ccc2021-01-19 17:09:26 +080024
guangchao.xu6cdd45e2021-04-16 17:44:30 +080025module.exports = config