Open bookshiyi opened 1 month ago
Please use wx.getSystemSetting/wx.getAppAuthorizeSetting/wx.getDeviceInfo/wx.getWindowInfo/wx.getAppBaseInfo instead. getSystemInfoSync
1.11.6
从基础库 2.20.1 开始,wx.getSystemInfoSync()接口停止维护,请使用 wx.getSystemSetting、wx.getAppAuthorizeSetting、wx.getDeviceInfo、wx.getWindowInfo、wx.getAppBaseInfo 代替
详见文档:https://developers.weixin.qq.com/miniprogram/dev/api/base/system/wx.getSystemInfoSync.html
调用任意组件,都可复现
version.js 中的getSystemInfoSync()被调用时发生
getSystemInfoSync()
function getSystemInfoSync() { if (systemInfo == null) { systemInfo = wx.getSystemInfoSync(); } return systemInfo; }
No response
+1
还没处理好呀?效率太低了
重现链接
Please use wx.getSystemSetting/wx.getAppAuthorizeSetting/wx.getDeviceInfo/wx.getWindowInfo/wx.getAppBaseInfo instead. getSystemInfoSync
Vant Weapp 版本
1.11.6
描述一下你遇到的问题。
从基础库 2.20.1 开始,wx.getSystemInfoSync()接口停止维护,请使用 wx.getSystemSetting、wx.getAppAuthorizeSetting、wx.getDeviceInfo、wx.getWindowInfo、wx.getAppBaseInfo 代替
详见文档:https://developers.weixin.qq.com/miniprogram/dev/api/base/system/wx.getSystemInfoSync.html
重现步骤
调用任意组件,都可复现
version.js 中的
getSystemInfoSync()
被调用时发生设备/浏览器
No response