fix: 导出导入用api.raw绕过封装对象+暴露原始axios实例

This commit is contained in:
mediabot-pt
2026-07-02 13:40:03 +08:00
parent 1c1680bed7
commit c0fc17cf05
2 changed files with 5 additions and 3 deletions

View File

@@ -93,5 +93,7 @@ export default {
parse: (configId, accessResultId) => api.post('/admin/adapter/parse', { configId, accessResultId }),
parseBatch: (configId, siteId) => api.post('/admin/adapter/parse-batch', { configId, siteId }),
},
health: () => api.get('/health', { baseURL: '' })
health: () => api.get('/health', { baseURL: '' }),
// 原始 axios 实例,供需要直接调用(如 blob 下载)的场景使用
raw: { get: (url, cfg) => api.get(url, cfg), post: (url, data, cfg) => api.post(url, data, cfg) }
}