mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-13 08:17:33 +00:00
feat: update tasks
This commit is contained in:
parent
e33e59f472
commit
0bf79914fe
@ -64,7 +64,10 @@ export const taskTimelineStore = defineStore({
|
|||||||
if (res.data.errors) {
|
if (res.data.errors) {
|
||||||
return res.data;
|
return res.data;
|
||||||
}
|
}
|
||||||
this.taskList = res.data.data.queryEBPFTasks || [];
|
const selectorStore = useSelectorStore();
|
||||||
|
this.taskList = (res.data.data.queryEBPFTasks || []).filter(
|
||||||
|
(d: EBPFTaskList) => selectorStore.currentProcess && d.processId === selectorStore.currentProcess.id,
|
||||||
|
);
|
||||||
// this.selectedTask = this.taskList[0] || {};
|
// this.selectedTask = this.taskList[0] || {};
|
||||||
// await this.getGraphData();
|
// await this.getGraphData();
|
||||||
return res.data;
|
return res.data;
|
||||||
|
@ -154,7 +154,7 @@ limitations under the License. -->
|
|||||||
taskTimelineStore.setTaskList([]);
|
taskTimelineStore.setTaskList([]);
|
||||||
});
|
});
|
||||||
watch(
|
watch(
|
||||||
() => selectorStore.currentPod,
|
() => selectorStore.currentProcess,
|
||||||
() => {
|
() => {
|
||||||
init();
|
init();
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user