set current segment

This commit is contained in:
Qiuxia Fan 2022-05-05 18:16:14 +08:00
parent e5ebb81ad8
commit 25b49f6501

View File

@ -140,6 +140,7 @@ const selectedTask = ref<TaskListItem | Record<string, never>>({});
const instanceLogs = ref<TaskLog | any>({}); const instanceLogs = ref<TaskLog | any>({});
async function changeTask(item: TaskListItem) { async function changeTask(item: TaskListItem) {
profileStore.setCurrentSegment({});
selectedTask.value = item; selectedTask.value = item;
const res = await profileStore.getSegmentList({ taskID: item.id }); const res = await profileStore.getSegmentList({ taskID: item.id });
if (res.errors) { if (res.errors) {