优化前端监控图表的报错逻辑

This commit is contained in:
lanrenwo 2023-01-13 18:02:13 +08:00
parent 262ad49df6
commit 4d9919d43c
1 changed files with 3 additions and 0 deletions

View File

@ -230,6 +230,9 @@ export default {
case "mem": this.formatMem(data); break;
}
}).catch(error => {
if (error.response.status === 401) {
return ;
}
this.$message.error('哦,请求出错');
console.log(error);
});