yubo
2026-04-07 5a2eea76d731bca3490aa6c6bfb3abcade5d11f7
src/utils/request.js
@@ -7,8 +7,8 @@
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
// 请求超时时间,10s
const requestTimeOut = 20 * 1000
// 请求超时时间,4分钟
const requestTimeOut = 4 * 60 * 1000
const success = 200
// 更换令牌的时间区间
const checkRegion = 5 * 60 * 1000
@@ -133,7 +133,8 @@
        return tansParams(params)
      }],
      headers: {
        'Authorization': authorizationValue
        'Authorization': authorizationValue,
        'Content-Type': 'application/x-www-form-urlencoded'
      }
    })
  },
@@ -193,6 +194,9 @@
      transformRequest: [(params) => {
        return tansParams(params)
      }],
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      },
      responseType: 'blob'
    }).then((r) => {
      const content = r.data