关于Android真机上调试无法显示icon发现的解决办法 #5819
lonffreytu
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
在Android真机调试时发现icon不显示

以下是开发者工具上的效果,是正常的

我的真机是小米10 pro

尝试了多种办法。并不是网上说的Android不支持woff2,也不是不支持网络加载。而是显示图标的容器没有应用vant-icon字体。

修改
miniprogram_npm/@vant/weapp/icon/index.wxss中的代码。将.van-icon:before中增加font-family:vant-icon即可Beta Was this translation helpful? Give feedback.
All reactions