增加一个配置文件

This commit is contained in:
daihh
2022-06-13 22:54:32 +08:00
parent 5e5b5f4dc2
commit 22f86baa3b
2 changed files with 56 additions and 2 deletions

View File

@@ -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 {