This commit is contained in:
2026-08-13 17:12:05 +08:00
parent 5aa060def2
commit fb6465104d
13 changed files with 776 additions and 220 deletions
+9
View File
@@ -136,4 +136,13 @@ export async function apiBlobRequest(config: AxiosRequestConfig) {
}
}
export async function apiBlobResponseRequest(config: AxiosRequestConfig) {
try {
const response = await transport.request<Blob>({ ...config, responseType: 'blob' })
return { blob: response.data, headers: response.headers }
} catch (error) {
throw mapError(error)
}
}
export { ApiError }