yubo
2026-04-10 ad77e25e868008e33a701084fd0e8c00a06cc6a0
src/utils/request.js
@@ -7,8 +7,8 @@
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
// 请求超时时间,10s
const requestTimeOut = 60 * 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