From 29fe30c80e5a38154dffaada0360ac9553975175 Mon Sep 17 00:00:00 2001 From: "luk.lu" Date: Wed, 20 Jul 2022 16:59:37 +0800 Subject: [PATCH] u --- unitool.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unitool.js b/unitool.js index dc73729..cc0a5a1 100644 --- a/unitool.js +++ b/unitool.js @@ -96,8 +96,8 @@ export default { // #ifdef H5 // 响应式方案:仅仅根据当前设备类型,如果是 PC 大屏幕,则始终显示 topWindow 并且隐藏顶部 navibar 和底部 tabBar。 - if (pagesJson?.topWindow || envar?.hideBarsOnPC) { - // 如果页头不是通过 pagesJson.topWindow 而是作为组件来引入个别页面,那么定义配置参数 hideBarsOnPC 来控制。 + if (pagesJson?.topWindow || !envar?.showBarsOnPC) { + // 如果页头不是通过 pagesJson.topWindow 而是作为组件来引入个别页面,那么定义配置参数 showBarsOnPC 来控制。 if (uni.getSystemInfoSync().model === 'PC') { if (window.innerWidth > (pagesJson?.topWindow?.matchMedia?.minWidth || 0)) { uni.hideTabBar()