From ddb0df2153bc75e54c3f7c1049be663d4d2dba96 Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期六, 15 八月 2020 19:10:03 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/vue-smart-ai --- src/components/subComponents/eChartsBar.vue | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/components/subComponents/eChartsBar.vue b/src/components/subComponents/eChartsBar.vue index 4cd7a99..ebfc650 100644 --- a/src/components/subComponents/eChartsBar.vue +++ b/src/components/subComponents/eChartsBar.vue @@ -161,12 +161,14 @@ } ] } + this.eChartsObj = echarts.init(this.$refs.cpuMenery); this.eChartsObj.setOption(options); + }, windowSizeChange() { this.eChartsObj.resize(); - }, + } } }; </script> -- Gitblit v1.8.0