From dec9937830f4506ef0d4025828b361875e4f5da4 Mon Sep 17 00:00:00 2001 From: aixianling Date: Sun, 8 Oct 2023 13:48:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B4=A7=E6=80=A5=E4=BF=AE=E5=A4=8D=E4=B8=80?= =?UTF-8?q?=E8=80=81BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/bigscreen/designer/components/Layout.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bigscreen/designer/components/Layout.vue b/packages/bigscreen/designer/components/Layout.vue index 111a9b7d..0ceb791a 100644 --- a/packages/bigscreen/designer/components/Layout.vue +++ b/packages/bigscreen/designer/components/Layout.vue @@ -368,9 +368,9 @@ export default { getInfo(id) { id && this.instance.post(`/app/appdiylargescreen/queryLargeScreenDetailById?id=${id}`).then(res => { - if (res.code === 0) { + if (res?.data) { const data = JSON.parse(res.data.config) - this.componentList = data.config + this.componentList = data.config.filter(Boolean) this.dashboard = data.dashboard this.images = data.images || [] }