优化线上环境和测试环境的接口调用判断

This commit is contained in:
赵毅 2025-10-15 15:28:26 +08:00
parent 5121c23802
commit 7961d4a5a2

View File

@ -55,7 +55,8 @@ const 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 picUrl = envConfig.picUrl; // 图片地址前缀