mirror of https://github.com/bjdgyc/anylink.git
优化前端监控图表的报错逻辑
This commit is contained in:
parent
262ad49df6
commit
4d9919d43c
|
@ -230,6 +230,9 @@ export default {
|
||||||
case "mem": this.formatMem(data); break;
|
case "mem": this.formatMem(data); break;
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
|
if (error.response.status === 401) {
|
||||||
|
return ;
|
||||||
|
}
|
||||||
this.$message.error('哦,请求出错');
|
this.$message.error('哦,请求出错');
|
||||||
console.log(error);
|
console.log(error);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue