小程序端:
<button open-type="chooseAvatar" class="login_img" bindchooseavatar="login_tu">
<image src="{{userimg}}"></image>
</button>
JS端是这样的:
login_tu: function(e){
console.log(e.detail);
const temp = e.detail.avatarUrl;
}
运行结果是不打印任何数据,直接报错如下:
当前开发者工具版本较旧,对当前版本基础库支持存在问题。请更新开发者工具,或选用更旧版本基础库。(env: Windows,mp,1.06.2405020; lib: 3.12.1)
(anonymous) @ VM7579:1
(anonymous) @ VM7579:1
Error: the type of property "avatarUrl" is illegal
at X (WAServiceMainContext.js?t=wechat&s=1766712678371&v=3.12.1:1)
at zt.prepare (WAServiceMainContext.js?t=wechat&s=1766712678371&v=3.12.1:1)
at $t.prepare (WAServiceMainContext.js?t=wechat&s=1766712678371&v=3.12.1:1)
at Function._$advancedCreate (WAServiceMainContext.js?t=wechat&s=1766712678371&v=3.12.1:1)
at WAServiceMainContext.js?t=wechat&s=1766712678371&v=3.12.1:1
at Object.createComponent (WAServiceMainContext.js?t=wechat&s=1766712678371&v=3.12.1:1)
at dt.createComponentByDef (WAServiceMainContext.js?t=wechat&s=1766712678371&v=3.12.1:1)
at c.append (<anonymous>:1:27287)
at WAServiceMainContext.js?t=wechat&s=1766712678371&v=3.12.1:1
at Generator.next (<anonymous>)(env: Windows,mp,1.06.2405020; lib: 3.12.1)
导致所有流程不能进行,还没进行任何操作,只要点击button,就弹出报错信息,这个问题困扰了三个月了,之前点击也报错,但在手机上运行是可以的,就没管,现在手机上也不能运行,直接中断了,请帮我分析一下是什么原因

有基础库限制,你换一个呢
这个是有基础库限制的,应该是你使用的基础库,不满足要求
<input type="nickname" class="login_inp" name="username" placeholder="点击以获取微信昵称" maxlength="10"/>
点击这句话,也是同样的报错,版本是3.12.1