This commit is contained in:
Fine 2024-12-03 18:10:30 +08:00
parent f46392e1f7
commit 4991fe6b89

View File

@ -157,11 +157,10 @@ limitations under the License. -->
}
async function changeTask(item: TaskListItem) {
if (item.id === asyncProfilingStore.selectedTask.id) {
return;
if (item.id !== asyncProfilingStore.selectedTask.id) {
asyncProfilingStore.setAnalyzeTrees([]);
asyncProfilingStore.setSelectedTask(item);
}
asyncProfilingStore.setSelectedTask(item);
asyncProfilingStore.setAnalyzeTrees([]);
service.value = (selectorStore.services.filter((s: Service) => s.id === item.serviceId)[0] ?? {}).label;
const res = await asyncProfilingStore.getTaskLogs({ taskId: item.id });