合并提交

This commit is contained in:
yanghang
2025-07-09 14:17:55 +08:00
16 changed files with 387 additions and 11683 deletions
+3 -3
View File
@@ -6,7 +6,7 @@ import common from '@/common/common.js'
const ENV = import.meta.env
export const get_base_url = url => {
if (process.env.NODE_ENV === 'development') { // 开发环境
if (ENV.MODE === 'development') { // 开发环境
// H5必须用非https,手机端必须用https
// #ifdef H5
const baseUrl = ENV.VITE_APP_BASE_API_Url
@@ -16,9 +16,9 @@ export const get_base_url = url => {
return baseUrl
// #endif
// #ifdef APP-PLUS
return ENV.VITE_APP_BASE_API_Url
return ENV.VITE_APP_BASE_API_Url
// #endif
} else if (process.env.NODE_ENV === 'production') { // 生产环境
} else { // 其他环境,包括生产环境,sit环境,uat环境
return ENV.VITE_APP_BASE_API_Url
}
}