云
16 小时以前 91bfcf61f44f353dfebc54a57b5b774721de3e9a
src/packages/effects/layouts/src/basic/layout.vue
@@ -185,6 +185,7 @@
}
const route = useRoute();
const isPortalHome = computed(() => route.path === '/analytics');
onMounted(() => {
  autoCollapseMenuByRouteMeta(route);
@@ -225,18 +226,19 @@
<template>
  <VbenAdminLayout
    :class="{ 'is-portal-home': isPortalHome }"
    v-model:sidebar-extra-visible="sidebarExtraVisible"
    :content-compact="preferences.app.contentCompact"
    :content-compact-width="preferences.app.contentCompactWidth"
    :content-padding="preferences.app.contentPadding"
    :content-padding-bottom="preferences.app.contentPaddingBottom"
    :content-padding-left="preferences.app.contentPaddingLeft"
    :content-padding-right="preferences.app.contentPaddingRight"
    :content-padding-top="preferences.app.contentPaddingTop"
    :content-padding="isPortalHome ? 0 : preferences.app.contentPadding"
    :content-padding-bottom="isPortalHome ? 0 : preferences.app.contentPaddingBottom"
    :content-padding-left="isPortalHome ? 0 : preferences.app.contentPaddingLeft"
    :content-padding-right="isPortalHome ? 0 : preferences.app.contentPaddingRight"
    :content-padding-top="isPortalHome ? 0 : preferences.app.contentPaddingTop"
    :footer-enable="preferences.footer.enable"
    :footer-fixed="preferences.footer.fixed"
    :footer-height="preferences.footer.height"
    :header-height="preferences.header.height"
    :header-height="isMixedNav && !isMobile ? 158 : preferences.header.height"
    :header-hidden="preferences.header.hidden"
    :header-mode="preferences.header.mode"
    :header-theme="headerTheme"
@@ -259,7 +261,7 @@
    :sidebar-theme-sub="sidebarThemeSub"
    :sidebar-width="preferences.sidebar.width"
    :side-collapse-width="preferences.sidebar.collapseWidth"
    :tabbar-enable="preferences.tabbar.enable"
    :tabbar-enable="preferences.tabbar.enable && !isPortalHome"
    :tabbar-height="preferences.tabbar.height"
    :z-index="preferences.app.zIndex"
    @side-mouse-leave="handleSideMouseLeave"
@@ -287,6 +289,7 @@
      <VbenLogo
        v-if="preferences.logo.enable"
        :fit="preferences.logo.fit"
        :logo-size="isMixedNav && !isMobile ? 56 : 32"
        :class="logoClass"
        :collapsed="logoCollapsed"
        :src="preferences.logo.source"
@@ -323,8 +326,9 @@
            :menus="wrapperMenus(headerMenus)"
            :rounded="isMenuRounded"
            :theme="headerTheme"
            class="w-full"
            class="portal-header-menu w-full"
            mode="horizontal"
            overflow-label="更多"
            @select="handleMenuSelect"
          />
        </template>