mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 18:06:47 +08:00
修改配置
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
/**系统的一些全局配置变量*/
|
||||
let apiBaseUrl = '';
|
||||
let oldApiBaseUrl ='/uboeApi';
|
||||
let statApiBaseUrl='/statApi';
|
||||
let socialApiBaseUrl='/socialApi';
|
||||
let loginPath='/pages/login/login';
|
||||
let context='/mbile';
|
||||
let tokenName='';
|
||||
@@ -10,26 +12,34 @@ let version=1;
|
||||
|
||||
if(process.env.NODE_ENV === 'development'){
|
||||
//本地开发环境
|
||||
apiBaseUrl = '/systemapi';
|
||||
apiBaseUrl = '/systemapi';
|
||||
oldApiBaseUrl = '/uboeApi';
|
||||
statApiBaseUrl='/statApi';
|
||||
socialApiBaseUrl='/socialApi';
|
||||
fileUrl = 'http://localhost:9090/cdn/upload';
|
||||
loginPath='/pages/login/login';
|
||||
}else if(process.env.NODE_ENV === 'preview'){
|
||||
// 预发布环境,当前配置未使用上
|
||||
apiBaseUrl = '/systemapi';
|
||||
oldApiBaseUrl = '/uboeApi';
|
||||
statApiBaseUrl='/statApi';
|
||||
socialApiBaseUrl='/socialApi';
|
||||
fileUrl = 'https://u-pre.boe.com/upload';
|
||||
loginPath='https://u-pre.boe.com/m/preview';
|
||||
}else if(process.env.NODE_ENV === 'testing'){
|
||||
// 测试环境
|
||||
apiBaseUrl = '/systemapi';
|
||||
oldApiBaseUrl = '/uboeApi';
|
||||
statApiBaseUrl='/statApi';
|
||||
socialApiBaseUrl='/socialApi';
|
||||
fileUrl = 'https://u-pre.boe.com/upload';
|
||||
loginPath='https://u-pre.boe.com/m/testing';
|
||||
}else{
|
||||
// 生产环境
|
||||
apiBaseUrl = '/systemapi';
|
||||
oldApiBaseUrl = '/uboeApi';
|
||||
statApiBaseUrl='/statApi';
|
||||
socialApiBaseUrl='/socialApi';
|
||||
fileUrl = 'https://u.boe.com/upload';
|
||||
loginPath='https://u.boe.com/m/loginuser';
|
||||
}
|
||||
@@ -37,6 +47,8 @@ if(process.env.NODE_ENV === 'development'){
|
||||
export default {
|
||||
apiBaseUrl:apiBaseUrl,
|
||||
oldApiBaseUrl:oldApiBaseUrl,
|
||||
statApiBaseUrl:statApiBaseUrl,
|
||||
socialApiBaseUrl:socialApiBaseUrl,
|
||||
context:context,
|
||||
appId:appId,
|
||||
loginPath:loginPath,
|
||||
|
||||
Reference in New Issue
Block a user