echarts重绘
站长
· 阅读数 14
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;
},