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

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

onLaunch: function() {
			console.log('App Launch')
				uni.hideTabBar()
		},

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

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

onLaunch: function() {
			setTimeout(()=>{
				uni.hideTabBar()
			},500)
		},

暂时解决:

在这里插入图片描述

Logo

一站式 AI 云服务平台

更多推荐