From f42e33e1b5c7652ede6446b6308a0187c85712d9 Mon Sep 17 00:00:00 2001 From: wangwenrui Date: Mon, 8 Jun 2020 18:11:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=88=86=E9=A1=B5=E5=8F=8Achart=20bug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/pagination.vue | 9 +++++---- .../src/components/page/dashboard/overview/chart.vue | 2 +- .../components/page/dashboard/overview/overview2.vue | 10 +++++----- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/nezha-fronted/src/components/common/pagination.vue b/nezha-fronted/src/components/common/pagination.vue index a82f3f334..cae6f13e8 100644 --- a/nezha-fronted/src/components/common/pagination.vue +++ b/nezha-fronted/src/components/common/pagination.vue @@ -62,10 +62,11 @@ export default { item.style.top='unset'; let icon=item.querySelector('.popper__arrow'); - icon.style.bottom=icon.style.top; - icon.style.top='unset'; - icon.style.transform='rotate(180deg)' - + if(icon){ + icon.style.bottom=icon.style.top; + icon.style.top='unset'; + icon.style.transform='rotate(180deg)' + } }) } }) diff --git a/nezha-fronted/src/components/page/dashboard/overview/chart.vue b/nezha-fronted/src/components/page/dashboard/overview/chart.vue index d6299c727..afe370b5c 100644 --- a/nezha-fronted/src/components/page/dashboard/overview/chart.vue +++ b/nezha-fronted/src/components/page/dashboard/overview/chart.vue @@ -101,7 +101,7 @@ } } // console.log(this.option) - if(this.series&&this.series.length>0){ + if(this.series){ this.$set(this.option,'series',this.series); this.noData=false; this.chart.clear(); diff --git a/nezha-fronted/src/components/page/dashboard/overview/overview2.vue b/nezha-fronted/src/components/page/dashboard/overview/overview2.vue index a00877565..fc8d504ba 100644 --- a/nezha-fronted/src/components/page/dashboard/overview/overview2.vue +++ b/nezha-fronted/src/components/page/dashboard/overview/overview2.vue @@ -118,7 +118,7 @@
-
No Data
+
@@ -132,7 +132,7 @@
-
No Data
+
@@ -149,7 +149,7 @@
-
No Data
+
@@ -186,8 +186,8 @@ -
No Data
-
No Data
+ +