From 59e59bd37e86df8f94d170283b43015d30989188 Mon Sep 17 00:00:00 2001 From: xuminyui <576362016@qq.com> Date: Thu, 10 Oct 2024 11:17:35 +0800 Subject: [PATCH] fix --- src/components/navBar/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/navBar/index.vue b/src/components/navBar/index.vue index e176013..c8573a6 100644 --- a/src/components/navBar/index.vue +++ b/src/components/navBar/index.vue @@ -40,7 +40,9 @@ const root = document.documentElement; root.style.setProperty( "--statusBarHeight", `${ - currentWebView.RunTime === "app" ? plus.navigator.getStatusbarHeight() : 0 + currentWebView.RunTime === "app" + ? plus.navigator.getStatusbarHeight() + : 0 ?? 0 }px` );