响应拦截器,错误信息增加msg取值

This commit is contained in:
guoyue 2022-09-29 17:26:58 +08:00
parent 98f0c360d4
commit f0df682cc6
1 changed files with 1 additions and 7 deletions

View File

@ -119,12 +119,6 @@ instance.interceptors.response.use(
if (_old_href === _new_href) {
location.reload()
}
// location.reload()
// 西-
// if(!whoShow.itShowXiHaiAn) {
// location.reload()
// }
return response
}
if (response.headers.redirect === '/#/login') {
@ -150,7 +144,7 @@ instance.interceptors.response.use(
location.reload()
}, 1000)
}
handleCode(code, message, response.headers)
handleCode(code, message || response.data.msg, response.headers)
if (loadingInstance) loadingInstance.close()
// const { data, config } = response
// const { code, msg } = data