浏览代码

no message

linwenxin 1 月之前
父节点
当前提交
34d911fd7c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/common/http/index.js

+ 2 - 2
src/common/http/index.js

@@ -73,7 +73,7 @@ export const $http = (url, method, data, json, loadingBool = false, isExecute =
         return Promise.reject(new Error(res.message || 'Error'))
         return Promise.reject(new Error(res.message || 'Error'))
       }
       }
       if (res.code === 4444) {
       if (res.code === 4444) {
-        removeQueryParams(['x-token', 'code'])
+        removeQueryParams(['x-token'])
         return {}
         return {}
       }
       }
       if (res.code === 1001) {
       if (res.code === 1001) {
@@ -284,7 +284,7 @@ export const axios = function (obj = {}) {
           }
           }
 
 
           if (res.code === 4444) {
           if (res.code === 4444) {
-            removeQueryParams(['x-token', 'code'])
+            removeQueryParams(['x-token'])
             reject(new Error(res.message || 'Error'))
             reject(new Error(res.message || 'Error'))
             return {}
             return {}
           }
           }