diff --git a/packages/effects/layouts/src/basic/layout.vue b/packages/effects/layouts/src/basic/layout.vue index af12deff..becf7aa0 100644 --- a/packages/effects/layouts/src/basic/layout.vue +++ b/packages/effects/layouts/src/basic/layout.vue @@ -78,23 +78,17 @@ const isMenuRounded = computed(() => { }); const logoCollapsed = computed(() => { - const shouldCollapse = isHeaderNav.value || isMixedNav.value; - - if (shouldCollapse) { + if (isMobile.value) { + return true; + } + if (isHeaderNav.value || isMixedNav.value) { return false; } - - const shouldExpandOnMobile = !sidebarCollapsed.value && isMobile.value; - - if (shouldExpandOnMobile) { - return false; - } - return sidebarCollapsed.value || isSideMixedNav.value; }); const showHeaderNav = computed(() => { - return isHeaderNav.value || isMixedNav.value; + return !isMobile.value && (isHeaderNav.value || isMixedNav.value); }); // 侧边多列菜单