|
@@ -81,13 +81,14 @@ export default function request(url, options) {
|
|
|
// download excel
|
|
|
if ( newOptions.DOWNLOAD ) {
|
|
|
console.log('download request');
|
|
|
+ delete newOptions.DOWNLOAD;
|
|
|
newOptions.headers = {
|
|
|
Accept: 'application/binary',
|
|
|
'Content-Type': 'multipart/x-www-form-urlencoded',
|
|
|
...newOptions.headers,
|
|
|
};
|
|
|
}
|
|
|
-
|
|
|
+ console.log('>>>>>>>>>newOptions',newOptions)
|
|
|
return fetch(url, newOptions)
|
|
|
.then(checkHttpStatus)
|
|
|
.then((response) => {
|