This commit is contained in:
Fine 2025-04-11 16:14:32 +08:00
parent a4309e3933
commit 319f9bbc30
2 changed files with 6 additions and 3 deletions

View File

@ -125,12 +125,16 @@ limitations under the License. -->
);
}
}
function handleSelectSpan(i: Recordable) {
function handleSelectSpan(i: any) {
const spans = [];
const refSpans = [];
parentSpans.value = [];
refParentSpans.value = [];
if (props.type === TraceGraphType.TABLE) {
currentSpan.value = i;
} else {
currentSpan.value = i.data;
}
if (!currentSpan.value) {
return;
}

View File

@ -56,7 +56,6 @@ limitations under the License. -->
import { ref, onMounted } from "vue";
import type { PropType } from "vue";
import { useTraceStore } from "@/store/modules/trace";
import type { Span } from "@/types/trace";
import TableItem from "./TableItem.vue";
import { ProfileConstant, TraceConstant, StatisticsConstant } from "./data";
import { TraceGraphType } from "../constant";