mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 11:25:22 +00:00
replace api
This commit is contained in:
parent
021b771be3
commit
8685bdb5fb
@ -200,9 +200,10 @@ export default defineComponent({
|
|||||||
dom.style.background = "rgba(0, 0, 0, 0.1)";
|
dom.style.background = "rgba(0, 0, 0, 0.1)";
|
||||||
}
|
}
|
||||||
function selectSpan(event: any) {
|
function selectSpan(event: any) {
|
||||||
const dom = event.path.find((d: any) =>
|
console.log(event.composedPath());
|
||||||
d.className.includes("trace-item")
|
const dom = event
|
||||||
);
|
.composedPath()
|
||||||
|
.find((d: any) => d.className.includes("trace-item"));
|
||||||
|
|
||||||
emit("select", props.data);
|
emit("select", props.data);
|
||||||
if (props.headerType === "profile") {
|
if (props.headerType === "profile") {
|
||||||
@ -212,9 +213,9 @@ export default defineComponent({
|
|||||||
viewSpanDetail(dom);
|
viewSpanDetail(dom);
|
||||||
}
|
}
|
||||||
function viewSpan(event: any) {
|
function viewSpan(event: any) {
|
||||||
const dom = event.path.find((d: any) =>
|
const dom = event
|
||||||
d.className.includes("trace-item")
|
.composedPath()
|
||||||
);
|
.find((d: any) => d.className.includes("trace-item"));
|
||||||
emit("select", props.data);
|
emit("select", props.data);
|
||||||
viewSpanDetail(dom);
|
viewSpanDetail(dom);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user