From 2bc0a78f702e3e8605bb9f50a2ae471e79f80ebf Mon Sep 17 00:00:00 2001 From: Anne_LXM <54163582+anne-lxm@users.noreply.github.com> Date: Sat, 27 Jan 2024 16:56:54 +0800 Subject: [PATCH] Update uni-navbar-lite.uvue --- .../uni-navbar-lite/uni-navbar-lite.uvue | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/components/uni-navbar-lite/uni-navbar-lite.uvue b/components/uni-navbar-lite/uni-navbar-lite.uvue index f7f5db0..5cf5e12 100644 --- a/components/uni-navbar-lite/uni-navbar-lite.uvue +++ b/components/uni-navbar-lite/uni-navbar-lite.uvue @@ -64,13 +64,10 @@ this.statusBarHeight = statusBarHeight; }, mounted() { - // TODO 暂时加定时器,否则不生效 - setTimeout(() => { - uni.setNavigationBarColor({ - frontColor: "#000000", - backgroundColor: "#ffffff", - }); - }, 100); + uni.setNavigationBarColor({ + frontColor: "#000000", + backgroundColor: "#ffffff", + }); }, methods: { back() { @@ -83,14 +80,13 @@