feat: 优化
This commit is contained in:
@@ -38,6 +38,21 @@ export const API_BASE = {
|
||||
AI_APP: `${BASE_URL}/api/ai`,
|
||||
}
|
||||
|
||||
/**
|
||||
* OSS 原始域名(用于上传预签名URL代理)
|
||||
*/
|
||||
export const OSS_ORIGINAL = 'https://muye-ai-chat.oss-cn-hangzhou.aliyuncs.com'
|
||||
|
||||
/**
|
||||
* 判断是否为开发环境
|
||||
*/
|
||||
export const isDev = () => {
|
||||
if (typeof import.meta !== 'undefined' && import.meta.env) {
|
||||
return import.meta.env.DEV
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取完整的 API 路径
|
||||
* @param {string} module - 模块名称 (如 'ADMIN_AI', 'APP_MEMBER')
|
||||
|
||||
Reference in New Issue
Block a user