diff --git a/packages/materials/src/libs/admin-layout/index.vue b/packages/materials/src/libs/admin-layout/index.vue index 543f7dc..bb03185 100644 --- a/packages/materials/src/libs/admin-layout/index.vue +++ b/packages/materials/src/libs/admin-layout/index.vue @@ -69,7 +69,8 @@ const isContentScroll = computed(() => props.scrollMode === 'content'); const isVertical = computed(() => props.mode === 'vertical'); const isHorizontal = computed(() => props.mode === 'horizontal'); -const fixedHeaderAndTab = computed(() => props.fixedTop || (isHorizontal.value && isWrapperScroll.value)); +// fixedTop is theme.fixedHeaderAndTab +const fixedHeaderAndTab = computed(() => props.fixedTop); // css const leftGapClass = computed(() => { @@ -157,7 +158,7 @@ function handleClickMask() {