data(){
return{
myChart=null
}
}
if (this.myChart != null && this.myChart!= "" && this.myChart!= undefined) {
this.myChart.dispose();
}
this.myChart = echarts.init(document.getElementById(‘sjtjt‘));
vue Ehcarts There is a chart instance already initialized on the dom.
原文:https://www.cnblogs.com/GentleKBP/p/10363903.html