data(){
return{
chart: null
}
}
if (this.chart != null && this.chart != "" && this.chart != undefined) {
this.chart.dispose();
}
this.chart = echarts.init(document.getElementById(‘#id‘));
使用echarts插件,多次加载出现There is a chart instance already initialized on the dom,报的警告,看不下去啦
原文:https://www.cnblogs.com/wpTing/p/15014287.html