mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 00:37:33 +00:00
fix
This commit is contained in:
parent
d7f4e69cd9
commit
c6436e8c59
@ -239,8 +239,8 @@ function visTimeline() {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
const items: any = new DataSet(events);
|
const items = new DataSet(events);
|
||||||
const options: any = {
|
const options = {
|
||||||
height: h,
|
height: h,
|
||||||
width: "100%",
|
width: "100%",
|
||||||
locale: "en",
|
locale: "en",
|
||||||
@ -248,9 +248,8 @@ function visTimeline() {
|
|||||||
};
|
};
|
||||||
visGraph.value = new Timeline(timeline.value, items, options);
|
visGraph.value = new Timeline(timeline.value, items, options);
|
||||||
visGraph.value.on("select", (data: { items: number[] }) => {
|
visGraph.value.on("select", (data: { items: number[] }) => {
|
||||||
const index = items[0];
|
const index = data.items[0];
|
||||||
currentEvent.value = events[index - 1 || 0] || {};
|
currentEvent.value = events[index - 1 || 0] || {};
|
||||||
console.log(currentEvent.value);
|
|
||||||
if (data.items.length) {
|
if (data.items.length) {
|
||||||
showEventDetail.value = true;
|
showEventDetail.value = true;
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user