feat: 优化token错误提醒

This commit is contained in:
fit2cloud-chenyw 2021-06-04 13:47:06 +08:00
parent fccd7d8f29
commit 588521194c

View File

@ -100,7 +100,7 @@ service.interceptors.response.use(response => {
} else {
msg = error.message
}
!error.config.hideMsg && (!error.config.headers['authentication-status']) && $error(msg)
!error.config.hideMsg && (!error.response.headers['authentication-status']) && $error(msg)
return Promise.reject(error)
})
export default service