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