clear tips

This commit is contained in:
Qiuxia Fan 2022-04-24 15:59:57 +08:00
parent fd3808406d
commit aa2b42fb83

View File

@ -89,6 +89,7 @@ export const ebpfStore = defineStore({
.query("getEBPFTasks") .query("getEBPFTasks")
.params({ serviceId }); .params({ serviceId });
this.tip = "";
if (res.data.errors) { if (res.data.errors) {
return res.data; return res.data;
} }
@ -115,7 +116,6 @@ export const ebpfStore = defineStore({
this.eBPFSchedules = eBPFSchedules; this.eBPFSchedules = eBPFSchedules;
if (!eBPFSchedules.length) { if (!eBPFSchedules.length) {
this.eBPFSchedules = []; this.eBPFSchedules = [];
return res.data;
} }
this.analyzeTrees = []; this.analyzeTrees = [];
return res.data; return res.data;