diff --git a/components/uni-navbar-lite/uni-navbar-lite.uvue b/components/uni-navbar-lite/uni-navbar-lite.uvue index f7f5db0db27e65385ce775a43b77098849d13408..5cf5e126fc9526d5959c53511016ea752c73ade1 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 @@