mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 11:21:29 +00:00
fix short time range (#121)
This commit is contained in:
@@ -77,7 +77,7 @@ onMounted(async () => {
|
||||
});
|
||||
document.addEventListener(
|
||||
"click",
|
||||
(event: Event) => {
|
||||
() => {
|
||||
if (instance.isDisposed()) {
|
||||
return;
|
||||
}
|
||||
@@ -88,27 +88,6 @@ onMounted(async () => {
|
||||
type: "updateAxisPointer",
|
||||
currTrigger: "leave",
|
||||
});
|
||||
if (
|
||||
["vis-item-overflow", "vis-item-content"].includes(
|
||||
(event.target as HTMLDivElement).className
|
||||
)
|
||||
) {
|
||||
return;
|
||||
}
|
||||
const series = (window as any).structuredClone(props.option.series);
|
||||
for (const temp of series) {
|
||||
if (temp.markArea) {
|
||||
delete temp.markArea;
|
||||
}
|
||||
}
|
||||
const options = {
|
||||
...props.option,
|
||||
series,
|
||||
};
|
||||
if (JSON.stringify(options) === JSON.stringify(props.option)) {
|
||||
return;
|
||||
}
|
||||
setOptions(options);
|
||||
},
|
||||
true
|
||||
);
|
||||
|
Reference in New Issue
Block a user