echarts重绘
vue大屏项目,全屏后echarts重绘
mounted() {
var that = this
window.onresize=() => {
that.myChartA.resize()
that.myChartB.resize()
that.myChartC.resize()
that.myChartD.resize()
that.myChartE.resize()
}
},
destroyed() {
window.onresize = null;
},
转载自:https://segmentfault.com/a/1190000043410399