This commit is contained in:
2022-07-20 11:11:08 +08:00
commit c0e7de76fd
141 changed files with 25350 additions and 0 deletions

23
src/config/env.js Normal file
View File

@@ -0,0 +1,23 @@
/**
* 配置编译环境和线上环境之间的切换
*
* baseUrl: 域名地址
* imgBaseUrl: 图片所在域名地址
*
*/
let baseUrl = ''
let imgBaseUrl = ''
if (process.env.NODE_ENV === 'development') {
baseUrl = 'http://192.168.81.107:8080'
imgBaseUrl = 'http://192.168.81.156:8081/hl_nlapp/'
} else if (process.env.NODE_ENV === 'production') {
baseUrl = 'http://192.168.81.138:8080'
imgBaseUrl = 'http://192.168.81.156:8081/hl_nlapp/'
}
export {
baseUrl,
imgBaseUrl
}