This commit is contained in:
Fine 2022-11-30 16:11:52 +08:00
parent bfc30e86fe
commit 55107ecbe4

View File

@ -152,6 +152,10 @@ export const networkProfilingStore = defineStore({
this.networkTasks = res.data.data.queryEBPFTasks || []; this.networkTasks = res.data.data.queryEBPFTasks || [];
this.selectedNetworkTask = this.networkTasks[0] || {}; this.selectedNetworkTask = this.networkTasks[0] || {};
this.setSelectedNetworkTask(this.selectedNetworkTask); this.setSelectedNetworkTask(this.selectedNetworkTask);
if (!this.networkTasks.length) {
this.nodes = [];
this.calls = [];
}
return res.data; return res.data;
}, },
async keepNetworkProfiling(taskId: string) { async keepNetworkProfiling(taskId: string) {