From 68f32bb4185e14db3492c7a86d37d9380335eb2c Mon Sep 17 00:00:00 2001 From: cshaptx4869 <994774638@qq.com> Date: Thu, 29 Feb 2024 23:33:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(AppMain):=20:bug:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=B7=B7=E5=90=88=E6=A8=A1=E5=BC=8F=E5=BC=80=E5=90=AF=E5=9B=BA?= =?UTF-8?q?=E5=AE=9AHead=E6=97=B6=E7=9A=84=E6=A0=B7=E5=BC=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/AppMain/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/layout/components/AppMain/index.vue b/src/layout/components/AppMain/index.vue index aae6e675..f446c1fb 100644 --- a/src/layout/components/AppMain/index.vue +++ b/src/layout/components/AppMain/index.vue @@ -40,6 +40,7 @@ const cachedViews = computed(() => useTagsViewStore().cachedViews); // 缓存页 } .hasTagsView .fixed-header + .app-main { + min-height: 100vh; padding-top: $navbar-height + $tags-view-height; } @@ -62,10 +63,14 @@ const cachedViews = computed(() => useTagsViewStore().cachedViews); // 缓存页 min-height: calc(100vh - $navbar-height - $tags-view-height); } + .fixed-header + .app-main { + min-height: calc(100vh - $navbar-height); + } + .hasTagsView .fixed-header + .app-main { height: calc(100vh - $navbar-height); min-height: calc(100vh - $navbar-height); - padding-top: 34px; + padding-top: $tags-view-height; } }