Commit 03ce030e by lidongcheng88 Committed by GitHub

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

Co-authored-by: ldc <lidchen@tencent.com>
1 parent 59097e24
...@@ -158,7 +158,9 @@ function clickLogo() { ...@@ -158,7 +158,9 @@ function clickLogo() {
function autoCollapseMenuByRouteMeta(route: RouteLocationNormalizedLoaded) { function autoCollapseMenuByRouteMeta(route: RouteLocationNormalizedLoaded) {
// 只在双列模式下生效 // 只在双列模式下生效
if ( if (
preferences.app.layout === 'sidebar-mixed-nav' && ['header-mixed-nav', 'sidebar-mixed-nav'].includes(
preferences.app.layout,
) &&
route.meta && route.meta &&
route.meta.hideInMenu route.meta.hideInMenu
) { ) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!