Commit 2ae28a1d authored by chenqikuai's avatar chenqikuai

fix: 组件销毁前销毁echats

parent 561b0959
...@@ -131,6 +131,9 @@ export default Vue.extend({ ...@@ -131,6 +131,9 @@ export default Vue.extend({
this.initEchart(); this.initEchart();
this.queryRealtime(); this.queryRealtime();
}, },
beforeDestroy(){
this.myChart && echarts.dispose(this.myChart)
},
methods: { methods: {
handleChangeTimeRange(e: any) { handleChangeTimeRange(e: any) {
this.timeRange = e.target!.value; this.timeRange = e.target!.value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment