西海岸:基础设施左侧树,只有一个父级菜单的时候,默认展开第一级

This commit is contained in:
guoyue 2022-10-18 15:51:23 +08:00
parent a7ac2e8a1e
commit 2ee2d988cc
1 changed files with 4 additions and 0 deletions

View File

@ -91,6 +91,10 @@ export default defineComponent({
})
}
treeData.value = res.data && res.data.data || []
//
if(res.data && res.data.data.length == 1) {
showBottom(treeData.value[0])
}
}
}
mybus.on('getDeptList', () => {