feat: 增加文件下载功能
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user