echarts 解决“There is a chart instance already initialized on the dom”问题
解决办法:
在重复调用之前先销毁之前的echarts
if (this.chart != null && this.chart != "" && this.chart != undefined) {
this.chart.dispose(); //销毁
}
this.chart = this.$echarts.init(this.$el);
this.chart.setOption(option);

浙公网安备 33010602011771号