taro-hooks icon indicating copy to clipboard operation
taro-hooks copied to clipboard

fix: replace deprecated getSystemInfoSync with new Taro system APIs

Open kirklin opened this issue 8 months ago • 4 comments

Completed 1045 next kirklin 3 Powered by Pull Request Badge

🤔 这个变动的性质是?/ What is the nature of this change?

  • [ ] 新特性提交 / New feature
  • [x] bug 修复 / Fix bug
  • [ ] 样式优化 / Style optimization
  • [ ] 代码风格优化 / Code style optimization
  • [ ] 性能优化 / Performance optimization
  • [ ] 构建优化 / Build optimization
  • [ ] 网站、文档、Demo 改进 / Website, documentation, demo improvements
  • [x] 重构代码或样式 / Refactor code or style
  • [ ] 测试相关 / Test related
  • [ ] 其他 / Other

🔗 相关 Issue / Related Issue

Link: #81

💡 需求背景和解决方案 / Background or solution

📝 更新日志 / Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

kirklin avatar Apr 04 '25 10:04 kirklin

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders
Open Preview

codesandbox[bot] avatar Apr 04 '25 10:04 codesandbox[bot]

@kirklin is attempting to deploy a commit to the innocces' projects Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Apr 04 '25 10:04 vercel[bot]

这是微信开发者工具报的警告。但是微信提供的用来替代的api例如 getWindowInfo,其他小程序里只有支付宝小程序支持了。Taro对这些api是做直接替换的 换成 wx.getWindowInfo my.getWindowInfo。 现在直接替换会影响兼容其他端吧

HyaCiovo avatar Apr 25 '25 03:04 HyaCiovo

=。- 这么说确实。目前新增的相关 systemInfo 的其他 api 已经补充了. 这个暂时挂起好了

innocces avatar Apr 27 '25 01:04 innocces

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 26 '25 02:06 stale[bot]