原因:echarts.init()在页面切换时没有及时进行销毁,实例重复创建导致的
//引入echarts
const Echarts=require('echarts')
//绘制图表
drowCharts(){
if(this.myCharts!=null && this.myCharts!='' && this.myCharts!=undefind){
this.myCharts.dispose()
}
this.myCharts=Echarts.init(this.$refs.chart)
}