From d6c6022a180c0044a67d0f370865318844503257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=B2=E9=B8=BD?= <1020103647@qq.com> Date: Sat, 11 May 2024 11:26:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20app=20=E6=9C=AA=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E5=8E=9F=E7=94=9Ftabbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 3 --- src/pages/index/index.vue | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index e978b98..d0dface 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,9 +3,6 @@ import { onLaunch, onShow, onHide } from '@dcloudio/uni-app' onLaunch(() => { console.log('App Launch') - // #ifdef H5 - uni.hideTabBar() - // #endif }) onShow(() => { console.log('App Show') diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index c2c1547..db9385c 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -48,6 +48,10 @@ const description = ref( onLoad(() => { console.log(author) }) +onLoad(() => { + // tabbar模板,直接在首页隐藏即可,全局只需要这一次 + uni.hideTabBar() +})