添加 production 环境切换
This commit is contained in:
parent
035882bb4c
commit
3f725e94fd
@ -11,10 +11,11 @@ let routerMode = 'hash';
|
||||
let dataSources='local';//local=本地,其他值代表非本地
|
||||
|
||||
|
||||
if (process.env.NODE_ENV == 'development') {
|
||||
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';
|
||||
|
Loading…
Reference in New Issue
Block a user