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

This commit is contained in:
CaptainB 2022-11-28 11:54:34 +08:00 committed by 刘瑞斌
parent aa5c66b8aa
commit 591f45477e

View File

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