uniApp uni.getSystemInfoSync()

688 阅读1分钟

场景:来回反复快速进入页面时;页面带有原生导航栏。

问题:在 mounted 生命周期中,获取系统信息,调用uni.getSystemInfoSync()同步接口,有时会出现 windowHeight 与 screenHeight 相等的情况。