mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-13 00:08:56 +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) {
|
||||
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] || {};
|
||||
// await this.getGraphData();
|
||||
return res.data;
|
||||
|
@ -154,7 +154,7 @@ limitations under the License. -->
|
||||
taskTimelineStore.setTaskList([]);
|
||||
});
|
||||
watch(
|
||||
() => selectorStore.currentPod,
|
||||
() => selectorStore.currentProcess,
|
||||
() => {
|
||||
init();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user