From b72955204d8a66f3d0a6d80855c5715e9b4852b0 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 23 May 2022 11:08:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=AA=E8=A1=A8=E6=9D=BF=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E5=99=A8console=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/view/ChartEdit.vue | 8 ++++---- frontend/src/views/chart/view/ChartStyle.vue | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index 11b50fd4f2..932d6c9595 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -652,7 +652,7 @@ item.render === _this.chart.render && item.value === _this.chart.type) if (viewConfig && viewConfig.length) { - return viewConfig[0].properties + return viewConfig[0].properties || [] } else { - return null + return [] } } else { - return null + return [] } }, chartType() { diff --git a/frontend/src/views/chart/view/ChartStyle.vue b/frontend/src/views/chart/view/ChartStyle.vue index 2b7c58a532..0e786a4854 100644 --- a/frontend/src/views/chart/view/ChartStyle.vue +++ b/frontend/src/views/chart/view/ChartStyle.vue @@ -354,7 +354,7 @@ export default { }, methods: { showProperties(property) { - return this.properties.includes(property) + return this.properties && this.properties.length && this.properties.includes(property) }, showPropertiesCollapse(propertiesInfo) { let includeCount = 0