|
@@ -182,6 +182,7 @@ export function download(url: any, params = {}, fileName = '') {
|
|
|
const config: any = {}
|
|
const config: any = {}
|
|
|
config.headers = { 'Content-Type': 'application/x-www-form-urlencoded' };
|
|
config.headers = { 'Content-Type': 'application/x-www-form-urlencoded' };
|
|
|
config.responseType = 'blob';
|
|
config.responseType = 'blob';
|
|
|
|
|
+ config.params = params;
|
|
|
return service
|
|
return service
|
|
|
.get(url, config)
|
|
.get(url, config)
|
|
|
.then(async (resp: any) => {
|
|
.then(async (resp: any) => {
|