From 51414d90c9ef85170bdf02cacfb92fb3e00d7f5d Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Mon, 13 Oct 2025 20:46:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(tabbar):=20=E4=BF=AE=E5=A4=8D=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E5=AE=9D=E8=87=AA=E5=AE=9A=E4=B9=89tabbar=E6=9C=AA?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E5=AF=BC=E8=87=B4=E6=98=BE=E7=A4=BA=E4=B8=A4?= =?UTF-8?q?=E4=B8=AAtabbar=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 支付宝环境下需要在onMounted钩子中调用hideTabBar来隐藏原生tabbar --- src/tabbar/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tabbar/index.vue b/src/tabbar/index.vue index 9bd3c6d..6e1f982 100644 --- a/src/tabbar/index.vue +++ b/src/tabbar/index.vue @@ -58,7 +58,7 @@ onLoad(() => { // #ifdef MP-ALIPAY onMounted(() => { // 解决支付宝自定义tabbar 未隐藏导致有2个 tabBar 的问题; 注意支付宝很特别,需要在 onMounted 钩子调用 - needHideNativeTabbar + customTabbarEnable // 另外,支付宝里面,只要是 customTabbar 都需要隐藏 && uni.hideTabBar({ fail(err) { console.log('hideTabBar fail: ', err)