From 2ee2d988cca63296814f67973d9cb2b9fcb4bdde Mon Sep 17 00:00:00 2001 From: guoyue Date: Tue, 18 Oct 2022 15:51:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A5=BF=E6=B5=B7=E5=B2=B8=EF=BC=9A=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E8=AE=BE=E6=96=BD=E5=B7=A6=E4=BE=A7=E6=A0=91=EF=BC=8C?= =?UTF-8?q?=E5=8F=AA=E6=9C=89=E4=B8=80=E4=B8=AA=E7=88=B6=E7=BA=A7=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=B1=95=E5=BC=80=E7=AC=AC=E4=B8=80=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/detailsPageInfrastructureTree.vue | 4 ++++ 1 file changed, 4 insertions(+) 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', () => {