refactor: 修改前端ajax对于返回错误的判断

This commit is contained in:
CaptainB 2022-11-28 11:54:34 +08:00 committed by 刘瑞斌
parent aa5c66b8aa
commit 591f45477e
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ instance.interceptors.response.use(response => {
return response; return response;
}, error => { }, error => {
let msg; let msg;
if (error.response) { if (error.response && error.response.headers) {
// 判断错误标记 // 判断错误标记
if (error.response.status === 402) { if (error.response.status === 402) {
if (error.response.headers['redirect']) { if (error.response.headers['redirect']) {