From 00281dbfa559a9bae432d43e28fa1e0bb9e1f511 Mon Sep 17 00:00:00 2001 From: lanrenwo Date: Fri, 16 Sep 2022 10:55:58 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6=E8=87=AA=E9=80=82=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/LineChart.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/src/components/LineChart.vue b/web/src/components/LineChart.vue index ac881cd..da355ce 100644 --- a/web/src/components/LineChart.vue +++ b/web/src/components/LineChart.vue @@ -29,8 +29,10 @@ }, mounted() { this.initChart() + window.addEventListener('resize', this.listenerResize); }, beforeDestroy() { + window.removeEventListener('resize', this.listenerResize) }, watch: { chartData:{ @@ -41,6 +43,9 @@ } }, methods: { + listenerResize() { + this.chart.resize(); + }, initChart() { this.chart = echarts.init(this.$el) From 0126333605b68d1b2168b9ce02127676eb5cc760 Mon Sep 17 00:00:00 2001 From: lanrenwo Date: Fri, 16 Sep 2022 14:36:39 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E6=97=B6=E9=95=BF=E6=8C=89=E9=92=AE=E7=9A=84=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/Home.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/pages/Home.vue b/web/src/pages/Home.vue index 40a179f..5f4d6de 100644 --- a/web/src/pages/Home.vue +++ b/web/src/pages/Home.vue @@ -363,6 +363,6 @@ export default { .time-range { position: absolute; right: 5px; - top: 10px; + top: 5px; } From 38afab2440d561e6b55d6f262037c3bf4236792e Mon Sep 17 00:00:00 2001 From: lanrenwo Date: Fri, 16 Sep 2022 14:59:53 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E4=B8=8E=E5=9B=BE=E8=A1=A8=E7=9A=84=E9=97=B4?= =?UTF-8?q?=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/Home.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/pages/Home.vue b/web/src/pages/Home.vue index 5f4d6de..a0e0f49 100644 --- a/web/src/pages/Home.vue +++ b/web/src/pages/Home.vue @@ -306,12 +306,15 @@ export default {