This commit is contained in:
陆柯 2022-03-16 21:08:29 +08:00
parent de4aa72ed7
commit 490fc9b628

View File

@ -104,11 +104,11 @@ export default {
// #ifdef H5 // #ifdef H5
if (uni.getSystemInfoSync().model==='PC') { if (uni.getSystemInfoSync().model==='PC') {
if (this.RESPONSIVE_TABBAR_AUTOHIDE) { if (this.RESPONSIVE_TABBAR_AUTOHIDE) {
if (window.screen.width > this.RESPONSIVE_WIDTH_THRESHOLD) { if (window.screen.width > this.RESPONSIVE_TABBAR_AUTOHIDE_WIDTH_THRESHOLD) {
uni.hideTabBar() uni.hideTabBar()
} }
uni.onWindowResize(({size})=>{ uni.onWindowResize(({size})=>{
if (size.windowWidth > this.RESPONSIVE_WIDTH_THRESHOLD) { if (size.windowWidth > this.RESPONSIVE_TABBAR_AUTOHIDE_WIDTH_THRESHOLD) {
uni.hideTabBar() uni.hideTabBar()
}else{ }else{
uni.showTabBar() uni.showTabBar()