small bug fix
This commit is contained in:
parent
40fd9c4c2c
commit
f100690202
@ -95,7 +95,7 @@ export default {
|
||||
// #ifdef H5
|
||||
// 响应式方案:仅仅根据当前设备类型,如果是 PC 大屏幕,则始终显示 topWindow 并且隐藏顶部 navibar 和底部 tabBar。
|
||||
const envar = this.envar || wo?.envar
|
||||
if (pagesJson?.topWindow) {
|
||||
if (pagesJson?.topWindow || envar.Hide_Bars_On_PC) { // 如果页头不是通过 pagesJson.topWindow 而是作为组件来引入个别页面,那么定义配置参数 Hide_Bars_On_PC 来控制。
|
||||
if (uni.getSystemInfoSync().model==='PC') {
|
||||
if (window.screen.width > (pagesJson?.topWindow?.matchMedia?.minWidth || 0)) {
|
||||
uni.hideTabBar()
|
||||
@ -188,10 +188,10 @@ export default {
|
||||
.catch((error) => { // {errMsg, stack} = error
|
||||
if (/request:fail/.test(error.errMsg)) {
|
||||
// 后台云服务无法连接
|
||||
result = { _state: 'CLIENT_BACKEND_BROKEN', error }
|
||||
return { _state: 'CLIENT_BACKEND_BROKEN', error }
|
||||
} else {
|
||||
// 后台云服务返回异常
|
||||
result = { _state: 'CLIENT_BACKEND_EXCEPTION', error }
|
||||
return { _state: 'CLIENT_BACKEND_EXCEPTION', error }
|
||||
}
|
||||
})
|
||||
result = resultCloud
|
||||
|
Loading…
Reference in New Issue
Block a user