From 518f607db32894dcf45d9a4fa44acb0f59170692 Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Wed, 16 Jul 2025 16:44:49 +0800 Subject: [PATCH 1/3] fix tracing profiling (#477) --- .../related/trace/components/D3Graph/Index.vue | 2 ++ .../dashboard/related/trace/components/Table.vue | 13 ++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/views/dashboard/related/trace/components/D3Graph/Index.vue b/src/views/dashboard/related/trace/components/D3Graph/Index.vue index 78d71e09..ae261070 100644 --- a/src/views/dashboard/related/trace/components/D3Graph/Index.vue +++ b/src/views/dashboard/related/trace/components/D3Graph/Index.vue @@ -69,6 +69,7 @@ limitations under the License. --> type: { type: String, default: TraceGraphType.LIST }, headerType: { type: String, default: "" }, }); + const emits = defineEmits(["select"]); const appStore = useAppStoreWithOut(); const loading = ref(false); const showDetail = ref(false); @@ -130,6 +131,7 @@ limitations under the License. --> refParentSpans.value = []; if (props.type === TraceGraphType.TABLE) { currentSpan.value = i; + emits("select", i); } else { currentSpan.value = i.data; } diff --git a/src/views/dashboard/related/trace/components/Table.vue b/src/views/dashboard/related/trace/components/Table.vue index 8ec36c47..171f0e5c 100644 --- a/src/views/dashboard/related/trace/components/Table.vue +++ b/src/views/dashboard/related/trace/components/Table.vue @@ -12,7 +12,13 @@ See the License for the specific language governing permissions and limitations under the License. -->