From fe0906af4a6302ec102870eb76ad945fee758d09 Mon Sep 17 00:00:00 2001 From: wanchun <445436867@qq.com> Date: Tue, 1 Mar 2022 11:22:07 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fes-plugin-layout/src/runtime/views/BaseLayout.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/fes-plugin-layout/src/runtime/views/BaseLayout.vue b/packages/fes-plugin-layout/src/runtime/views/BaseLayout.vue index adf1efda..83065240 100644 --- a/packages/fes-plugin-layout/src/runtime/views/BaseLayout.vue +++ b/packages/fes-plugin-layout/src/runtime/views/BaseLayout.vue @@ -259,12 +259,12 @@ export default { const currentFixedHeaderRef = computed( () => props.fixedHeader || props.navigation === 'mixin' ); - const headerStyleRef = computed(() => (currentFixedHeaderRef.value ? { top: `${headerHeightRef.value}px` } : {})); + const headerStyleRef = computed(() => (currentFixedHeaderRef.value ? { top: `${headerHeightRef.value}px` } : null)); const sideStyleRef = computed(() => (props.fixedSideBar ? { left: collapsedRef.value ? '48px' : `${props.sideWidth}px` } - : {})); + : null)); return { headerRef, headerHeightRef,