const node_dev = process.env.H_NODE_ENV; //运行到浏览器用的 let apiBaseurl='http://wx.hw.hongweisoft.com/forestapi/forest-portal'; let loginUrl='http://wx.hw.hongweisoft.com/forestapi/forest-portal/wechat/h5/authorize?returnUrl=http://172.16.90.25:8080/#/'; //打包用的 if (node_dev) { apiBaseurl = process.env.H_BASE_URL; loginUrl = process.env.H_LOGIN_URL } // console.log('node_devL',node_dev); const config = { apiBaseurl:apiBaseurl, loginUrl:loginUrl, //gloab 全局 imgUrl:"", placeImg:'http://placekitten.com', } export { config }