diff --git a/src/components/Graph.vue b/src/components/Graph.vue index 8734626d..e719da7f 100644 --- a/src/components/Graph.vue +++ b/src/components/Graph.vue @@ -51,6 +51,9 @@ function drawEcharts(): void { if (!chart.value) { return; } + if (state.instanceChart) { + return; + } state.instanceChart = echarts.init(chart.value, ""); unWarp(state.instanceChart).setOption(props.option); state.instanceChart.on("click", (params: any) => { diff --git a/src/components/Selector.vue b/src/components/Selector.vue index a349fd5a..fafc936f 100644 --- a/src/components/Selector.vue +++ b/src/components/Selector.vue @@ -32,7 +32,7 @@ limitations under the License. --> diff --git a/src/views/dashboard/graphs/Pie.vue b/src/views/dashboard/graphs/Pie.vue index 5560eb5d..25874d42 100644 --- a/src/views/dashboard/graphs/Pie.vue +++ b/src/views/dashboard/graphs/Pie.vue @@ -16,7 +16,7 @@ limitations under the License. -->