fix: app 未隐藏原生tabbar

This commit is contained in:
菲鸽 2024-05-11 11:26:04 +08:00
parent 84d4607b2a
commit d6c6022a18
2 changed files with 4 additions and 3 deletions

View File

@ -3,9 +3,6 @@ import { onLaunch, onShow, onHide } from '@dcloudio/uni-app'
onLaunch(() => { onLaunch(() => {
console.log('App Launch') console.log('App Launch')
// #ifdef H5
uni.hideTabBar()
// #endif
}) })
onShow(() => { onShow(() => {
console.log('App Show') console.log('App Show')

View File

@ -48,6 +48,10 @@ const description = ref(
onLoad(() => { onLoad(() => {
console.log(author) console.log(author)
}) })
onLoad(() => {
// tabbar
uni.hideTabBar()
})
</script> </script>
<style> <style>