diff --git a/packages/@core/preferences/src/use-preferences.ts b/packages/@core/preferences/src/use-preferences.ts index ecd2bc74d55..20df7a6055d 100644 --- a/packages/@core/preferences/src/use-preferences.ts +++ b/packages/@core/preferences/src/use-preferences.ts @@ -82,10 +82,20 @@ function usePreferences() { () => appPreferences.value.layout === 'header-nav', ); + /** + * @zh_CN 是否为头部混合导航模式 + */ const isHeaderMixedNav = computed( () => appPreferences.value.layout === 'header-mixed-nav', ); + /** + * @zh_CN 是否为顶部通栏+侧边导航模式 + */ + const isHeaderSidebarNav = computed( + () => appPreferences.value.layout === 'header-sidebar-nav', + ); + /** * @zh_CN 是否为混合导航模式 */ @@ -225,6 +235,7 @@ function usePreferences() { isFullContent, isHeaderMixedNav, isHeaderNav, + isHeaderSidebarNav, isMixedNav, isMobile, isSideMixedNav, diff --git a/packages/effects/layouts/src/basic/layout.vue b/packages/effects/layouts/src/basic/layout.vue index 73f692f63fc..8fe16c2b6de 100644 --- a/packages/effects/layouts/src/basic/layout.vue +++ b/packages/effects/layouts/src/basic/layout.vue @@ -40,6 +40,7 @@ const { isMobile, isSideMixedNav, isHeaderMixedNav, + isHeaderSidebarNav, layout, preferencesButtonPosition, sidebarCollapsed, @@ -81,7 +82,7 @@ const logoCollapsed = computed(() => { if (isMobile.value && sidebarCollapsed.value) { return true; } - if (isHeaderNav.value || isMixedNav.value) { + if (isHeaderNav.value || isMixedNav.value || isHeaderSidebarNav.value) { return false; } return (