fix: 导出导入用api.raw绕过封装对象+暴露原始axios实例
This commit is contained in:
@@ -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) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user