企业微信 Mac 升级到3.1.18版本后注册jssdk失败
window.wx.config({
beta: true,
debug: false,
appId: res?.appid
timestamp: res.timestamp,
nonceStr: res.noncestr,
signature: res.signature,
jsApiList: ['chooseImage', 'previewImage', 'getLocation'],
openTagList: ['wx-open-launch-weapp']
});
window.wx.ready(async function () {
console.log('4. wx ready OK 了,开始执行 setAgentConfig') // 注意:触发了失败以后接着触发成功
setAgentConfig(res, success); // 注册企业微信的
});
window.wx.error(function (res: any) {
console.log('4.2 wx ready error') // 注意:先触发了失败
error?.(res)
});
[图片] 如上所述,升级以后注册失败