没做过这方面的需求,没遇到过
wx.agentConfig 报错?开发环境:vue 引入:import wx from "wecomjsdk" 【版本:1.0.2】 企业微信4.0 调用 直播api ,wx.agentConfig 配置失败。fail方法报错如下: [图片] getAgentJsSDk({url:location.href.split('#')[0]},res=>{ alert(location.href.split('#')[0]) console.log("----------",wx.invoke) wx.agentConfig({ debug:true, corpid: res.data.data.corpid, // 必填,企业微信的corpid,必须与当前登录的企业一致 agentid: res.data.data.agentid+'', // 必填,企业微信的应用id (e.g. 1000247) timestamp: res.data.data.timestamp, // 必填,生成签名的时间戳 nonceStr: res.data.data.noncestr, // 必填,生成签名的随机串 signature: res.data.data.signature,// 必填,签名,见附录-JS-SDK使用权限签名算法 jsApiList: ['startLiving',"invoke"], //必填 success: function(res) { // 回调 alert(JSON.stringify(res)) alert('success') }, fail: function(res) { alert('fail') alert(JSON.stringify(res)) if(res.errMsg.indexOf('function not exist') > -1){ alert('版本过低请升级') } } }); })
2022-04-19解决了!
自定义tabBar切换tab是会报错,但是能正常切换(解决)?VM14842:1 thirdScriptError Cannot read property 'getComputedName' of undefined;at api nextTick callback function TypeError: Cannot read property 'getComputedName' of undefined at _e.trigger (http://127.0.0.1:19600/appservice/component/dist/tabs/index.js:147:29) at Function.(http://127.0.0.1:19600/appservice/component/dist/tabs/index.js:200:24) at http://127.0.0.1:19600/appservice/__dev__/WAService.js:1:108201 at Function.Op (http://127.0.0.1:19600/appservice/__dev__/WAService.js:1:970535) at http://127.0.0.1:19600/appservice/__dev__/WAService.js:1:108201 at http://127.0.0.1:19600/appservice/__dev__/WAService.js:1:96229 [图片]
2019-11-24