jin-yufeng / mp-html

小程序富文本组件,支持渲染和编辑 html,支持在微信、QQ、百度、支付宝、头条和 uni-app 平台使用
https://jin-yufeng.gitee.io/mp-html
MIT License
3.26k stars 478 forks source link

关于新版将不支持getSystemInfo,不知道能否改成getSystemInfoAsync #549

Closed zero3412 closed 11 months ago

zero3412 commented 12 months ago

问题描述

开发者工具提示: Current Wechat version do not support asynchronous getSystemInfo. "wx.getSystemInfoAsync" will be finished by synchronous implementation.

需求

(腾讯小程序版)每次看到开发者工具中有这样的提示就很不爽,不知道能否改进下呢?

jin-yufeng commented 12 months ago

这个提示说的是不支持异步吧

jin-yufeng commented 12 months ago

getSystemInfoAsync 2.14.1 才支持,组件内用的是 getSystemInfoSync,没有说新版不支持吧

zero3412 commented 11 months ago

getSystemInfoAsync 2.14.1 才支持,组件内用的是 getSystemInfoSync,没有说新版不支持吧

是哦,哈哈哈,眼拙了,这提示也真是。。。 。。。