This commit is contained in:
田岩
2025-09-23 16:27:25 +08:00
parent ef5a3d768a
commit 85202f5350
5 changed files with 16 additions and 8 deletions
+3
View File
@@ -6,6 +6,7 @@ import common from '@/common/common.js'
const ENV = import.meta.env
export const get_base_url = (url = '') => {
if (ENV.MODE === 'development') { // 开发环境
// #ifdef H5
if (url) {
@@ -20,7 +21,9 @@ export const get_base_url = (url = '') => {
return ENV.VITE_APP_BASE_API_Url
// #endif
} else { // 其他环境,包括生产环境,sit环境,uat环境
return ENV.VITE_APP_BASE_API_Url
// return ENV.VITE_APP_BASE_API_Url
}
}