页面多个echarts时,自适应绑定方式必须是addEventListener
window.addEventListener("resize",()=>{ myChart.resize();
myChart2.resize();
})
myChart,
myChart2
是echart实例
标签:vue,myChart2,myChart,react,echarts,resize,页面
From: https://www.cnblogs.com/ranyonsue/p/18293188