feat: 增加文件下载功能

This commit is contained in:
zhengkunwang223
2022-09-06 17:48:49 +08:00
parent 7719f028fb
commit 9d6e232d0f
11 changed files with 325 additions and 99 deletions

View File

@@ -78,6 +78,9 @@ class RequestHttp {
delete<T>(url: string, params?: any, _object = {}): Promise<ResultData<T>> {
return this.service.delete(url, { params, ..._object });
}
download<BlobPart>(url: string, params?: object, _object = {}): Promise<BlobPart> {
return this.service.post(url, params, _object);
}
}
export default new RequestHttp(config);