uni-app 开发小程序 无法获取到头像?

小程序 文章 2022-03-08 17:40 0 全屏看文

uni-app 开发小程序 无法获取到头像?uni-app development applet Can't get the avatar?

uni-app 开发小程序 无法获取到头像?

<open-data type="userAvatarUrl" :default-avatar="$imageUrl('me-unlogin-icon.png')"></open-data>

无效,电脑上运行的时候可以获取到 ,真机不显示,之前做好的小程序线上也突然获取不到了

< open data type = "useravatarurl": default avatar = "$imageurl ('me unlogin icon. PNG ')" > < / Open Data > is invalid. It can be obtained when running on the computer. The real machine does not display, and the previously made small programs can not be obtained online

回答:

VBit:

此方式以不可用,需用户授权获取

brave:

能力回收了

-EOF-