提交 af4e85e1 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

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

上级 db715994
...@@ -401,7 +401,10 @@ export default { ...@@ -401,7 +401,10 @@ export default {
}, },
loadTable(sceneId) { loadTable(sceneId) {
loadTable({ sceneId: sceneId, sort: 'type asc,create_time desc,name asc' }).then(res => { 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
}))
}) })
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论