fix: 修改授权失败的错误码

This commit is contained in:
valarchie 2023-07-26 22:15:36 +08:00
parent 167d4122b7
commit 32fdd488d8

View File

@ -136,7 +136,7 @@ class PureHttp {
// 请求返回失败时,有业务错误时,弹出错误提示 // 请求返回失败时,有业务错误时,弹出错误提示
if (response.data.code !== 0) { if (response.data.code !== 0) {
// token失效时弹出过期提示 // token失效时弹出过期提示
if (response.data.code === 20101) { if (response.data.code === 106) {
ElMessageBox.confirm( ElMessageBox.confirm(
"登录状态已过期,您可以继续留在该页面,或者重新登录", "登录状态已过期,您可以继续留在该页面,或者重新登录",
"系统提示", "系统提示",