mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 13:40:55 +08:00
优化前端监控图表的报错逻辑
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user