diff --git a/frontend/src/views/chart/components/ChartComponent.vue b/frontend/src/views/chart/components/ChartComponent.vue index 22b94b5276..963fc6f111 100644 --- a/frontend/src/views/chart/components/ChartComponent.vue +++ b/frontend/src/views/chart/components/ChartComponent.vue @@ -50,6 +50,9 @@ export default { mounted() { this.preDraw() }, + destroyed() { + this.myChart.dispose() + }, methods: { preDraw() { // 基于准备好的dom,初始化echarts实例