Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微信小程序端的 wx.getSystemInfo / wx.getSystemInfoSync 停止维护 #5215

Open
xiaohe0601 opened this issue Nov 6, 2024 · 2 comments

Comments

@xiaohe0601
Copy link

xiaohe0601 commented Nov 6, 2024

微信小程序端的 wx.getSystemInfo / wx.getSystemInfoSync / wx.getSystemInfoAsync 停止维护,uniapp的框架中仍然有使用到,控制台报出大量警告。

wx.getSystemInfoSync is deprecated.
Please use wx.getSystemSetting/wx.getAppAuthorizeSetting/wx.getDeviceInfo/wx.getWindowInfo/wx.getAppBaseInfo instead.

cn @vendor.js:formatted:1
ft @vendor.js:formatted:1
ht @vendor.js:formatted:1
...

wx.getSystemInfoSync

从基础库 2.20.1 开始,本接口停止维护,请使用 wx.getSystemSettingwx.getAppAuthorizeSettingwx.getDeviceInfowx.getWindowInfowx.getAppBaseInfo 代替

版本信息

  • uniapp:3.0.0-4020920240930001
  • vue:3.4.38
@xiaohe0601 xiaohe0601 changed the title 微信小程序端的 wx.getSystemInfoSync 停止维护 微信小程序端的 wx.getSystemInfo / wx.getSystemInfoSync 停止维护 Nov 6, 2024
@Johnwjl
Copy link

Johnwjl commented Nov 17, 2024

+1

1 similar comment
@bombzj
Copy link

bombzj commented Nov 20, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants