From deef7b1b5bfc545627183d1de41f6416f15aa78d Mon Sep 17 00:00:00 2001 From: "Ray.Hao" <1490493387@qq.com> Date: Fri, 6 Mar 2026 15:57:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E6=A0=8F=E5=86=85=E5=AE=B9=E9=AB=98=E5=BA=A6=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/custom-navbar/index.vue | 7 ++++++- src/pages/index/index.vue | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/custom-navbar/index.vue b/src/components/custom-navbar/index.vue index 8acfa85..02e17e5 100644 --- a/src/components/custom-navbar/index.vue +++ b/src/components/custom-navbar/index.vue @@ -9,7 +9,7 @@ backgroundColor: bgColor, }" > - + @@ -82,6 +82,11 @@ const statusBarHeight = computed(() => navbar.statusBarHeight.value); const navBarHeight = computed(() => navbar.navBarHeight); const totalHeight = computed(() => navbar.totalHeight.value); +const contentHeight = computed(() => { + const height = totalHeight.value - statusBarHeight.value; + return height > 0 ? height : navBarHeight.value; +}); + const menuButtonWidth = computed(() => navbar.menuButtonWidth.value); const menuButtonRightGap = computed(() => navbar.menuButtonRightGap.value); const menuButtonLeft = computed(() => navbar.menuButtonLeft.value); diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 1efa28a..ac7f0d1 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -1,6 +1,6 @@