紧急修复一老BUG

This commit is contained in:
aixianling
2023-10-08 13:48:30 +08:00
parent c2a1ad2cd7
commit dec9937830

View File

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