当前位置:   article > 正文

uniapp 自定义tabbar App.vue中onLaunch使用uni.hideTabBar()隐藏tabbar出现空白,未能正常隐藏tabbar_uni.hidetabbar()不生效

uni.hidetabbar()不生效

App.vue中onLaunch使用uni.hideTabBar()隐藏tabbar出现空白,未能正常隐藏tabbar

App.vue中默认隐藏tabbar方式:

onLaunch: function() {
			console.log('App Launch')
				uni.hideTabBar()
		},
  • 1
  • 2
  • 3
  • 4

在(目前只在安卓上出现)App真机调试中tabbar无法正常隐藏,原来位置为空白:
在这里插入图片描述

临时解决方法(应该是官方bug):

onLaunch: function() {
			setTimeout(()=>{
				uni.hideTabBar()
			},500)
		},
  • 1
  • 2
  • 3
  • 4
  • 5

暂时解决:

在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/605053
推荐阅读
相关标签
  

闽ICP备14008679号