Browse Source

fix: 去掉jsonDown这个类型

梦辉 1 year ago
parent
commit
58eef576aa
3 changed files with 2 additions and 6 deletions
  1. 1 1
      src/api/commitment.js
  2. 0 4
      src/utils/fetch/handleReqLoading.js
  3. 1 1
      src/utils/fetch/requestHandler.js

+ 1 - 1
src/api/commitment.js

@@ -146,7 +146,7 @@ export function editVerifyTask (data) {
  */
 export function getReminderList (data) {
     const url = zlbApi.getReminderList;
-    return myFetch(url, 'get', data, 'jsonDown');
+    return myFetch(url, 'get', data, 'json');
 }
 
 /**

+ 0 - 4
src/utils/fetch/handleReqLoading.js

@@ -4,10 +4,6 @@
  */
 let requestNum = 0;
 const handleReqLoading = (loadingStatus,dataType='json') => {
-    // 如果是文件下载,不显示loading
-    if(dataType === 'jsonDown'){
-        return;
-    }
     if (loadingStatus) {
         requestNum++;
     } else {

+ 1 - 1
src/utils/fetch/requestHandler.js

@@ -8,7 +8,7 @@ export const handleRequest = (reqConfig) => {
     const promises = [];
 
     /** 普通请求 */
-    if (reqConfig.dataType === 'json' || reqConfig.dataType === 'jsonDown') {
+    if (reqConfig.dataType === 'json') {
         const promise = new Promise((resolve, reject) => {
             uni.request({
                 ...reqConfig,