gaoluyang
6 天以前 1ae506a28bc4cd026ee8afb82e1d41898e8d26f2
src/utils/request.ts
@@ -49,11 +49,11 @@
      // @ts-ignore
      const msg: string = errorCode[code] || data.msg || errorCode['default']
      // 记录接收到的参数
      console.log('接收到的参数:', {
        url: (config.baseUrl || baseUrl) + config.url,
        code: code,
        data: data
      })
      // console.log('接收到的参数:', {
      //   url: (config.baseUrl || baseUrl) + config.url,
      //   code: code,
      //   data: data
      // })
      if (code === 401) {
        showConfirm('登录状态已过期,您可以继续留在该页面,或者重新登录?').then(res => {
          if (res.confirm) {