vue写法
mounted() {
window.onresize = () => {
return (() => {
const chartDomA = echarts.init(document.getElementById('main-progress'))
const chartDomB = echarts.init(document.getElementById('main-danger'))
const chartDomC = echarts.init(document.getElementById('main-manager'))
const chartDomD = echarts.init(document.getElementById('main-bnumer'))
chartDomA.resize()
chartDomB.resize()
chartDomC.resize()
chartDomD.resize()
})()
}
}