fix: frontend lint

This commit is contained in:
wangcham
2026-02-09 10:48:22 +08:00
parent c2574bdd3a
commit 10dd8c86d0
3 changed files with 18 additions and 6 deletions

View File

@@ -206,4 +206,19 @@ export abstract class BaseHttpClient {
...config,
});
}
public async downloadFile(
url: string,
config?: RequestConfig,
): Promise<AxiosResponse<Blob>> {
try {
const response = await this.instance.get<Blob>(url, {
responseType: 'blob',
...config,
});
return response;
} catch (error) {
return this.handleError(error as object);
}
}
}