mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 10:05:24 +00:00
fix graph
This commit is contained in:
parent
5fadcaa210
commit
363745aa00
@ -28,6 +28,7 @@ import {
|
|||||||
computed,
|
computed,
|
||||||
} from "vue";
|
} from "vue";
|
||||||
import type { PropType } from "vue";
|
import type { PropType } from "vue";
|
||||||
|
import _ from "lodash";
|
||||||
import { useECharts } from "@/hooks/useEcharts";
|
import { useECharts } from "@/hooks/useEcharts";
|
||||||
import { addResizeListener, removeResizeListener } from "@/utils/event";
|
import { addResizeListener, removeResizeListener } from "@/utils/event";
|
||||||
|
|
||||||
@ -71,15 +72,15 @@ onMounted(async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => props.option,
|
() => _.cloneDeepWith(props.option),
|
||||||
(newVal, oldVal) => {
|
(data, old) => {
|
||||||
if (!available.value) {
|
if (!available.value) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (JSON.stringify(newVal) === JSON.stringify(oldVal)) {
|
if (data === old) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setOptions(newVal);
|
setOptions(data);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user