diff --git a/src/views/reagent/envrecord/index.vue b/src/views/reagent/envrecord/index.vue index 865b97c..0f68fe9 100644 --- a/src/views/reagent/envrecord/index.vue +++ b/src/views/reagent/envrecord/index.vue @@ -254,7 +254,9 @@ export default { }) }, initCharts() { - this.lineCharts() + this.$nextTick(() => { + this.lineCharts() + }) window.addEventListener('resize', () => { this.myChart2.resize() })