fix: 仪表盘 组件树状结构不正确

This commit is contained in:
fit2cloud-chenyw 2021-06-02 15:14:29 +08:00
parent db71599447
commit af4e85e10c

View File

@ -401,7 +401,10 @@ export default {
},
loadTable(sceneId) {
loadTable({ sceneId: sceneId, sort: 'type asc,create_time desc,name asc' }).then(res => {
this.sceneDatas = res.data
res && res.data && (this.sceneDatas = res.data.map(tb => {
tb.type = 'db'
return tb
}))
})
},