fix: 混合双列 onMounted 关闭二级侧边栏 (#6807)

Co-authored-by: ldc <lidchen@tencent.com>
This commit is contained in:
lidongcheng88 2025-10-14 06:56:00 +08:00 committed by GitHub
parent 59097e2466
commit 03ce030e7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -158,7 +158,9 @@ function clickLogo() {
function autoCollapseMenuByRouteMeta(route: RouteLocationNormalizedLoaded) {
//
if (
preferences.app.layout === 'sidebar-mixed-nav' &&
['header-mixed-nav', 'sidebar-mixed-nav'].includes(
preferences.app.layout,
) &&
route.meta &&
route.meta.hideInMenu
) {