- 页面设置landscape跳转到页面portrait后“原生api”返回信息不一致?
wx.getWindowInfo()与wx.getSystemInfoSync()返回信息不一致(版本基础库:3.7.4) 重现:从页面设置pageOrientation为“portrait”,跳转到页面设置pageOrientation为“landscape”,再跳转到pageOrientation设置为“portrait”页面返回系统信息不对。 [图片] [图片] 代码片段1: const systemInfo = wx.getSystemInfoSync(); const orientation = systemInfo.windowWidth > systemInfo.windowHeight ? 'landscape' : 'portrait'; console.log('=getSystemInfoSync=:', orientation,JSON.stringify(systemInfo)); 代码片段2: let systemSetting = Taro.getSystemSetting?Taro.getSystemSetting():{} let windowInfo = Taro.getWindowInfo?Taro.getWindowInfo():{} let deviceInfo = Taro.getDeviceInfo?Taro.getDeviceInfo():{} console.log("=getSystemSetting=",systemSetting.deviceOrientation,JSON.stringify({ ...deviceInfo, ...systemSetting, ...windowInfo }))
22小时前 - 开发者工具config:ok 手机getLocation:invalid signature?
开发者工具config:ok 手机getLocation:invalid signature?v7.0.18
2020-12-14