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.
|
|
|
|
|
/**
|
|
|
|
|
|
* 配置编译环境和线上环境之间的切换
|
|
|
|
|
|
*
|
|
|
|
|
|
* 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,
|
|
|
|
|
|
}
|