diff --git a/src/components/content/airInfo/AirInfo.vue b/src/components/content/airInfo/AirInfo.vue index 3408ec0..957c3dd 100644 --- a/src/components/content/airInfo/AirInfo.vue +++ b/src/components/content/airInfo/AirInfo.vue @@ -242,6 +242,7 @@ const initChart = () => { } ] } + myEcharts.setOption(option); //图表大小自适应窗口大小变化 window.onresize = () => {