You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.2 KiB
32 lines
1.2 KiB
let DEV = false;
|
|
DEV = true; //使用测试环境
|
|
|
|
const baseConfig = {
|
|
errorHandle: false, //是否启用全局异常处理O
|
|
loadingHandle: false, //是否启用全局loading加载提示
|
|
locationAK: 'RSVQzjuUWNG72eVr6IywyZVeyDI7yglQ',
|
|
};
|
|
|
|
const development = {
|
|
baseUrl: 'http://10.8.30.112:13400',
|
|
// baseUrl: 'https://d763-117-90-37-10.ap.ngrok.io',
|
|
// webUrl: 'https://smartwater.anxinyun.cn',
|
|
// pcode: 'fce4afe2-5b6a-408a-ab18-a2afa7fa027c',
|
|
// imgUrl: 'http://rfkimpwbb.hn-bkt.clouddn.com/',
|
|
imgUrl: 'http://resources-test.anxinyun.cn/',
|
|
// requestCache: true, //开启异步请求缓存
|
|
...baseConfig
|
|
};
|
|
|
|
const production = {
|
|
baseUrl: 'https://sihao.anxinyun.cn/_api',
|
|
// baseUrl: 'https://d763-117-90-37-10.ap.ngrok.io',
|
|
// webUrl: 'https://smartwater.anxinyun.cn',
|
|
// pcode: 'fce4afe2-5b6a-408a-ab18-a2afa7fa027c',
|
|
imgUrl: 'http://resources.anxinyun.cn/',
|
|
...baseConfig
|
|
};
|
|
|
|
const environment = DEV ? development : production;
|
|
|
|
export default environment;
|
|
|