From abf0f7560ce17b0422abee42c6a262685f0619dc Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 19 May 2021 18:00:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=87=E6=BB=A4=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=9C=A8=E6=B2=A1=E6=9C=89=E8=A7=86=E5=9B=BE=E6=97=B6=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/panel/filter/filterDialog.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/panel/filter/filterDialog.vue b/frontend/src/views/panel/filter/filterDialog.vue index 811123150b..169a4c90d9 100644 --- a/frontend/src/views/panel/filter/filterDialog.vue +++ b/frontend/src/views/panel/filter/filterDialog.vue @@ -316,7 +316,7 @@ export default { const viewIds = this.componentData .filter(item => item.type === 'view' && item.propValue && item.propValue.viewId) .map(item => item.propValue.viewId) - viewsWithIds(viewIds).then(res => { + viewIds && viewIds.length > 0 && viewsWithIds(viewIds).then(res => { const datas = res.data this.viewInfos = datas })