mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 10:56:47 +08:00
增加一个配置文件
This commit is contained in:
@@ -13,12 +13,24 @@ if(process.env.NODE_ENV === 'development'){
|
||||
oldApiBaseUrl = '/uboeApi';
|
||||
fileUrl = 'http://localhost:9090/cdn/upload';
|
||||
loginPath='/pages/login/login';
|
||||
}else{
|
||||
}else if(process.env.NODE_ENV === 'preview'){
|
||||
// 生产环境
|
||||
apiBaseUrl = '/systemapi';
|
||||
oldApiBaseUrl = '/uboeApi';
|
||||
fileUrl = 'https://u-pre.boe.com/file/upload';
|
||||
loginPath='https://u-pre.boe.com/m';
|
||||
loginPath='https://u-pre.boe.com/m/preview';
|
||||
}else if(process.env.NODE_ENV === 'testing'){
|
||||
// 生产环境
|
||||
apiBaseUrl = '/systemapi';
|
||||
oldApiBaseUrl = '/uboeApi';
|
||||
fileUrl = 'https://u-pre.boe.com/file/upload';
|
||||
loginPath='https://u-pre.boe.com/m/testing';
|
||||
}else{
|
||||
// 生产环境
|
||||
apiBaseUrl = '/systemapi';
|
||||
oldApiBaseUrl = '/uboeApi';
|
||||
fileUrl = 'https://u.boe.com/file/upload';
|
||||
loginPath='https://u.boe.com/m/production';
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user