let DEV = false; DEV = true; //使用测试环境 const baseConfig = { errorHandle: false, //是否启用全局异常处理‌‍‍‌‍​‌‌‍​‌‌‌‌‌​‌‌‍‌​‍‌‌‌‌​‍‍‍‍‌​‌‍‍‌‍​‌‌‍​‍‍‍‌‌​‍‌‌‌‌​‍‌‍‌​‍‌‌‌O loadingHandle: false, //是否启用全局loading加载提示 locationAK: 'RSVQzjuUWNG72eVr6IywyZVeyDI7yglQ', }; const development = { baseUrl: 'https://3024-117-90-36-177.jp.ngrok.io', webUrl: 'https://smartwater.anxinyun.cn', pcode: 'fce4afe2-5b6a-408a-ab18-a2afa7fa027c', imgUrl: 'http://test.resources.anxinyun.cn/', // requestCache: true, //开启异步请求缓存 ...baseConfig }; const production = { baseUrl: 'https://wxapp.free-sun.vip/v1/api', webUrl: 'http://218.3.150.105:8998', pcode: 'b3718361-f7db-4058-98a6-071393d0420c', imgUrl: 'http://test.resources.anxinyun.cn/', ...baseConfig }; const environment = DEV ? development : production; export default environment;