From 41237af24e9181284ff1dccfd30fcfae9490fc34 Mon Sep 17 00:00:00 2001 From: hyx Date: Thu, 24 Mar 2022 17:33:07 +0800 Subject: [PATCH] =?UTF-8?q?CN-409=20=20Entity=20Explorer--=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E5=9B=BE=E8=A1=A8=E5=BC=80=E5=8F=91:ip?= =?UTF-8?q?=E6=89=98=E7=AE=A1=E5=9F=9F=E5=90=8Dloading=20=E4=B8=8D?= =?UTF-8?q?=E6=B6=88=E5=A4=B1=E9=97=AE=E9=A2=98=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts/PanelChart.vue | 4 +++- src/views/charts/charts/options/line.js | 6 ++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/charts/PanelChart.vue b/src/views/charts/PanelChart.vue index 87c9f45c..ec923183 100644 --- a/src/views/charts/PanelChart.vue +++ b/src/views/charts/PanelChart.vue @@ -251,7 +251,9 @@ export default { } }).finally(() => { setTimeout(() => { - if(!(this.chartInfo.type === 33 || this.chartInfo.type === 34)){ + if(!(this.chartInfo.type === 33 || this.chartInfo.type === 34) ){ + this.loading = false + }else if(!this.chartData || this.chartData.length === 0){ this.loading = false } }, 200) diff --git a/src/views/charts/charts/options/line.js b/src/views/charts/charts/options/line.js index 9f510208..0658ddde 100644 --- a/src/views/charts/charts/options/line.js +++ b/src/views/charts/charts/options/line.js @@ -89,8 +89,7 @@ export const lineWithStatistics = { formatter: function (value, index) { return unitConvert(value, unitTypes.number).join(' ') } - }, - minInterval: 1 + } }, color: chartColor, grid: { @@ -138,8 +137,7 @@ export const lineStack = { formatter: function (value, index) { return unitConvert(value, unitTypes.number).join(' ') } - }, - minInterval: 1 + } }, grid: { left: 55,