This commit is contained in:
18500206848
2024-02-02 14:44:30 +08:00
parent 6647042acb
commit 91172a730c
255 changed files with 24805 additions and 0 deletions

23
config/env.js Normal file
View File

@@ -0,0 +1,23 @@
let baseUrl = '';
const env = process.env
if (env.NODE_ENV == 'development') {
if (env.VUE_APP_PLATFORM === 'mp-weixin') {
baseUrl = `https://testapi.jlhrms.cn`; // 开发环境地址
}
} else if (env.NODE_ENV == 'production') {
if (env.VUE_APP_PLATFORM === 'mp-weixin') {
baseUrl = `https://wxapi.jlhrms.cn`; //生产环境地址
}
} else if (env.NODE_ENV == 'test') {
if (env.VUE_APP_PLATFORM === 'mp-weixin') {
baseUrl = `https://testapi.jlhrms.cn`; //测试环境地址
} {
baseUrl = ``; //测试环境地址
}
}
export {
baseUrl,
env
}