diff --git a/front/src/views/home/detailsPageInfrastructureTree.vue b/front/src/views/home/detailsPageInfrastructureTree.vue index 0adb69d9..b30661cb 100644 --- a/front/src/views/home/detailsPageInfrastructureTree.vue +++ b/front/src/views/home/detailsPageInfrastructureTree.vue @@ -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', () => {