refactor: 修改前端ajax对于返回错误的判断
This commit is contained in:
parent
aa5c66b8aa
commit
591f45477e
|
@ -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']) {
|
||||||
|
|
Loading…
Reference in New Issue