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 || [] }