From e6321f464a4ca5d52fe6af862bcb30b51382b8ca Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 29 Sep 2020 13:33:00 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=20qiery=5Frange?= =?UTF-8?q?=20=E4=BC=A0=E5=8F=82nultyoe=E7=9A=84=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/charts/chart-list.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/charts/chart-list.vue b/nezha-fronted/src/components/charts/chart-list.vue index 504c7d4cc..9b63bd0a8 100644 --- a/nezha-fronted/src/components/charts/chart-list.vue +++ b/nezha-fronted/src/components/charts/chart-list.vue @@ -837,7 +837,7 @@ const axiosArr = chartItem.elements.map((ele) => { const filterItem = ele; let query = encodeURIComponent(filterItem.expression); - if(chartInfo.type==='line'||chartInfo.type==='bar'||chartInfo.type==='stackArea'){//如果是这三个 默认给connected + if((chartInfo.type==='line'||chartInfo.type==='bar'||chartInfo.type==='stackArea')&&chartInfo.param){//如果是这三个 默认给connected chartInfo.param.nullType=chartInfo.param.nullType||'connected'; query+='&nullType='+chartInfo.param.nullType; } @@ -1236,7 +1236,7 @@ let step = bus.getStep(startTime, endTime); this.$nextTick(() => { let query = chartInfo.elements[0].expression; - if(chartInfo.type==='line'||chartInfo.type==='bar'||chartInfo.type==='stackArea'){ + if((chartInfo.type==='line'||chartInfo.type==='bar'||chartInfo.type==='stackArea')&&chartInfo.param){ chartInfo.param.nullType=chartInfo.param.nullType||'connected'; query+='&nullType='+chartInfo.param.nullType; }