u
This commit is contained in:
parent
fdbe0904ef
commit
29fe30c80e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user