diff --git a/src/store/modules/async-profiling.ts b/src/store/modules/async-profiling.ts index 8f9d496b..b4beb1a1 100644 --- a/src/store/modules/async-profiling.ts +++ b/src/store/modules/async-profiling.ts @@ -49,6 +49,9 @@ export const asyncProfilingStore = defineStore({ setSelectedTask(task: Recordable) { this.selectedTask = task || {}; }, + setAnalyzeTrees(tree: AsyncProfilerStackElement[]) { + this.analyzeTrees = tree; + }, async getTaskList() { const { duration } = useAppStoreWithOut(); const selectorStore = useSelectorStore(); @@ -64,6 +67,7 @@ export const asyncProfilingStore = defineStore({ } this.taskList = res.data.data.asyncTaskList.tasks || []; this.selectedTask = this.taskList[0] || {}; + this.setAnalyzeTrees([]); this.setSelectedTask(this.selectedTask); if (!this.taskList.length) { return res.data; diff --git a/src/views/dashboard/related/async-profiling/components/Filter.vue b/src/views/dashboard/related/async-profiling/components/Filter.vue index e4f7aa1a..29166959 100644 --- a/src/views/dashboard/related/async-profiling/components/Filter.vue +++ b/src/views/dashboard/related/async-profiling/components/Filter.vue @@ -37,7 +37,7 @@ limitations under the License. -->