diff --git a/frontend/src/layout/components/Sidebar/index.vue b/frontend/src/layout/components/Sidebar/index.vue index f0d9ddb54..62cef3da0 100644 --- a/frontend/src/layout/components/Sidebar/index.vue +++ b/frontend/src/layout/components/Sidebar/index.vue @@ -18,6 +18,7 @@ :collapse-transition="false" :unique-opened="true" @select="handleMenuClick" + class="custom-menu" > @@ -168,7 +169,7 @@ const search = async () => { rstMenuList.push(menuItem); } else { menuItem.children.forEach((child: any) => { - if (child.hidden == undefined || child.hidden == false) { + if (!child.hidden) { menuChildren.push(child); } }); @@ -193,6 +194,13 @@ onMounted(() => {