diff --git a/src/layouts/base-layout/index.vue b/src/layouts/base-layout/index.vue index 7d00da2..7debe5d 100644 --- a/src/layouts/base-layout/index.vue +++ b/src/layouts/base-layout/index.vue @@ -85,8 +85,13 @@ function getSiderWidth() { } function getSiderCollapsedWidth() { + const { reverseHorizontalMix } = themeStore.layout; const { collapsedWidth, mixCollapsedWidth, mixChildMenuWidth } = themeStore.sider; + if (isHorizontalMix.value && reverseHorizontalMix) { + return isActiveFirstLevelMenuHasChildren.value ? collapsedWidth : 0; + } + let w = isVerticalMix.value || isHorizontalMix.value ? mixCollapsedWidth : collapsedWidth; if (isVerticalMix.value && appStore.mixSiderFixed && childLevelMenus.value.length) {