ludu-cloud/mobile-web/src/config/env.js
YunaiV 235da59f70 前端:优惠劵列表
前端:增加路由的认证拦截
2019-04-08 21:47:23 +08:00

31 lines
653 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 配置编译环境和线上环境之间的切换
*
* baseUrl: 域名地址
* routerMode: 路由模式
* dataSources数据源
*/
let baseUrl = '';
let routerMode = 'hash';
let dataSources='local';//local=本地,其他值代表非本地
if (!process.env.NODE_ENV || process.env.NODE_ENV == 'development') {
baseUrl='http://127.0.0.1';
}else if(process.env.NODE_ENV == 'production'){
baseUrl = 'http://180.167.213.26:18099';
dataSources='production';
}
// baseUrl = 'http://127.0.0.1';
// baseUrl = 'http://180.167.213.26:18099';
dataSources = 'remote';
// dataSources = 'local';
export {
baseUrl,
routerMode,
dataSources,
}