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) {