优化线上环境和测试环境的接口调用判断
This commit is contained in:
parent
5121c23802
commit
7961d4a5a2
@ -55,7 +55,8 @@ const getCurrentEnvironment = () => {
|
|||||||
|
|
||||||
// 获取当前环境配置
|
// 获取当前环境配置
|
||||||
const currentEnv = getCurrentEnvironment();
|
const currentEnv = getCurrentEnvironment();
|
||||||
const envConfig = environments[currentEnv] || environments.development;
|
console.log("🚀 ~ currentEnv:", currentEnv)
|
||||||
|
const envConfig = environments[currentEnv] || environments.production;
|
||||||
|
|
||||||
export const RequsetUrl = envConfig.apiUrl; // 请求地址前缀
|
export const RequsetUrl = envConfig.apiUrl; // 请求地址前缀
|
||||||
export const picUrl = envConfig.picUrl; // 图片地址前缀
|
export const picUrl = envConfig.picUrl; // 图片地址前缀
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user