环境:env: Windows,mp,1.05.2107090; lib: 2.27.2
微信开发工具的版本: stable 1.05.2107090
问题描述:如果不开启微信开发工具的漏洞扫描功能Vulnerability, 小程序正常运行, 一旦开启Vulnerability, 所有的操作都无法完成, 错误信息如下:
window.WeixinJSBridge.beforeinvoke is not a function
at Object.value (apihook.js?t=wechat&s=1669363738795&v=c634323e24ab879383badd89488e0143:1)
at Object.value [as navigateTo] (beforebaselibready.js?t=wechat&s=1669363738795&v=c618645d8af5e47213841bb5387c087c:9)
at eo.<anonymous> (gatewayManage.js? [sm]:196)
at eo.toGatewayDetail (util.js? [sm]:43)
at Object.i.safeCallback (VM102 WAService.js:1)
at VM102 WAService.js:1
at Tn (VM102 WAService.js:1)
at VM102 WAService.js:1
at le (VM102 WAService.js:1)
at se (VM102 WAService.js:1)(env: Windows,mp,1.05.2107090; lib: 2.27.2)
问题已解决, 将调试基础库的版本更换成2.22.1以下正常执行, 2.27.2, 2.28.0, 2.27.3, 2.25.3这几个版本都试过了,都会抛出这个问题