fix(tabbar): 修复H5环境下无tabbar时的白屏问题
当tabbar缓存未启用时,将tabBar配置设为undefined而非空对象。在H5环境下,无tabbar时设置为空对象以防止浏览器报错导致白屏
This commit is contained in:
@@ -153,4 +153,4 @@ const _tabbar: TabBar = {
|
||||
}
|
||||
|
||||
// 0和1 需要显示底部的tabbar的各种配置,以利用缓存
|
||||
export const tabBar = tabbarCacheEnable ? _tabbar : {}
|
||||
export const tabBar = tabbarCacheEnable ? _tabbar : undefined
|
||||
|
||||
Reference in New Issue
Block a user