Skip to content

Commit 03ce030

Browse files
lidongcheng88ldc
andauthored
fix: 混合双列 onMounted 关闭二级侧边栏 (vbenjs#6807)
Co-authored-by: ldc <[email protected]>
1 parent 59097e2 commit 03ce030

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/effects/layouts/src/basic/layout.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ function clickLogo() {
158158
function autoCollapseMenuByRouteMeta(route: RouteLocationNormalizedLoaded) {
159159
// 只在双列模式下生效
160160
if (
161-
preferences.app.layout === 'sidebar-mixed-nav' &&
161+
['header-mixed-nav', 'sidebar-mixed-nav'].includes(
162+
preferences.app.layout,
163+
) &&
162164
route.meta &&
163165
route.meta.hideInMenu
164166
) {

0 commit comments

Comments
 (0)