Browse Source

测试阶段 --下载5

sophieChenyx 5 years ago
parent
commit
ee3f32c538
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/utils/request.js

+ 2 - 1
src/utils/request.js

@@ -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) => {