mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 17:36:45 +08:00
32 lines
723 B
JavaScript
32 lines
723 B
JavaScript
/**系统的一些全局配置变量*/
|
|
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.boe.com/file/upload';
|
|
loginPath='https://u.boe.com/m';
|
|
}
|
|
|
|
export default {
|
|
apiBaseUrl:apiBaseUrl,
|
|
oldApiBaseUrl:oldApiBaseUrl,
|
|
context:context,
|
|
appId:appId,
|
|
loginPath:loginPath,
|
|
fileUrl:fileUrl,
|
|
version:version,
|
|
} |