diff --git a/src/store/modules/async-profiling.ts b/src/store/modules/async-profiling.ts index 69df45fe..71833382 100644 --- a/src/store/modules/async-profiling.ts +++ b/src/store/modules/async-profiling.ts @@ -121,11 +121,7 @@ export const asyncProfilingStore = defineStore({ this.analyzeTrees = []; return res.data; } - if (analysisResult.tip) { - this.analyzeTrees = []; - return res.data; - } - this.analyzeTrees = analysisResult.elements; + this.analyzeTrees = [analysisResult.tree]; 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 e874ce50..0bac83e9 100644 --- a/src/views/dashboard/related/async-profiling/components/Filter.vue +++ b/src/views/dashboard/related/async-profiling/components/Filter.vue @@ -59,7 +59,7 @@ limitations under the License. --> ); function changeInstances(options: Option[]) { - serviceInstanceIds.value = options.map((d: Option) => d.value); + serviceInstanceIds.value = options.map((d: any) => d.id); } function changeEventType(options: Option[]) {