mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-11 03:46:47 +08:00
修改配置文件
This commit is contained in:
@@ -9,28 +9,29 @@ let fileUrl='';
|
|||||||
let version=1;
|
let version=1;
|
||||||
|
|
||||||
if(process.env.NODE_ENV === 'development'){
|
if(process.env.NODE_ENV === 'development'){
|
||||||
|
//本地开发环境
|
||||||
apiBaseUrl = '/systemapi';
|
apiBaseUrl = '/systemapi';
|
||||||
oldApiBaseUrl = '/uboeApi';
|
oldApiBaseUrl = '/uboeApi';
|
||||||
fileUrl = 'http://localhost:9090/cdn/upload';
|
fileUrl = 'http://localhost:9090/cdn/upload';
|
||||||
loginPath='/pages/login/login';
|
loginPath='/pages/login/login';
|
||||||
}else if(process.env.NODE_ENV === 'preview'){
|
}else if(process.env.NODE_ENV === 'preview'){
|
||||||
// 生产环境
|
// 预发布环境,当前配置未使用上
|
||||||
apiBaseUrl = '/systemapi';
|
apiBaseUrl = '/systemapi';
|
||||||
oldApiBaseUrl = '/uboeApi';
|
oldApiBaseUrl = '/uboeApi';
|
||||||
fileUrl = 'https://u-pre.boe.com/file/upload';
|
fileUrl = 'https://u-pre.boe.com/upload';
|
||||||
loginPath='https://u-pre.boe.com/m/preview';
|
loginPath='https://u-pre.boe.com/m/preview';
|
||||||
}else if(process.env.NODE_ENV === 'testing'){
|
}else if(process.env.NODE_ENV === 'testing'){
|
||||||
// 生产环境
|
// 测试环境
|
||||||
apiBaseUrl = '/systemapi';
|
apiBaseUrl = '/systemapi';
|
||||||
oldApiBaseUrl = '/uboeApi';
|
oldApiBaseUrl = '/uboeApi';
|
||||||
fileUrl = 'https://u-pre.boe.com/file/upload';
|
fileUrl = 'https://u-pre.boe.com/upload';
|
||||||
loginPath='https://u-pre.boe.com/m/testing';
|
loginPath='https://u-pre.boe.com/m/testing';
|
||||||
}else{
|
}else{
|
||||||
// 生产环境
|
// 生产环境
|
||||||
apiBaseUrl = '/systemapi';
|
apiBaseUrl = '/systemapi';
|
||||||
oldApiBaseUrl = '/uboeApi';
|
oldApiBaseUrl = '/uboeApi';
|
||||||
fileUrl = 'https://u.boe.com/file/upload';
|
fileUrl = 'https://u.boe.com/upload';
|
||||||
loginPath='https://u.boe.com/m/production';
|
loginPath='https://u.boe.com/m/loginuser';
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
Reference in New Issue
Block a user