mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-10 11:26:47 +08:00
2022年5月29日 从svn移到git
This commit is contained in:
32
config/index.js
Normal file
32
config/index.js
Normal file
@@ -0,0 +1,32 @@
|
||||
/**系统的一些全局配置变量*/
|
||||
let apiBaseUrl = '';
|
||||
let oldApiBaseUrl ='/uboeApi';
|
||||
let loginPath='/pages/login/login';
|
||||
let context='/mbile';
|
||||
let tokenName='';
|
||||
let appId=''
|
||||
let fileUrl='';
|
||||
let version=1;
|
||||
|
||||
if(process.env.NODE_ENV === 'development'){
|
||||
apiBaseUrl = '/systemapi';
|
||||
oldApiBaseUrl = '/uboeApi';
|
||||
fileUrl = 'http://localhost:9090/cdn/upload';
|
||||
loginPath='/pages/login/login';
|
||||
}else{
|
||||
// 生产环境
|
||||
apiBaseUrl = '/systemapi';
|
||||
oldApiBaseUrl = '/uboeApi';
|
||||
fileUrl = 'https://u-pre.boe.com/file/upload';
|
||||
loginPath='https://u-pre.boe.com/m';
|
||||
}
|
||||
|
||||
export default {
|
||||
apiBaseUrl:apiBaseUrl,
|
||||
oldApiBaseUrl:oldApiBaseUrl,
|
||||
context:context,
|
||||
appId:appId,
|
||||
loginPath:loginPath,
|
||||
fileUrl:fileUrl,
|
||||
version:version,
|
||||
}
|
||||
Reference in New Issue
Block a user