<button class="weui-btn" open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="onGotUserInfo">确认</button>
//得到用户授权
onGotUserInfo function
//用户点击允许授权
console.log(e.detail.userInfo);
return;
提示这个错误
VM520:1 thirdScriptError
Cannot read property 'detail' of undefined;at api login success callback function
TypeError: Cannot read property 'detail' of undefined
at be.onGotUserInfo (http://127.0.0.1:55084/appservice/__APP__/appservice.js:5354:19)
at success (http://127.0.0.1:55084/appservice/__APP__/appservice.js:5337:17)
at http://127.0.0.1:55084/appservice/appservice?t=1577241553357:9:21250
at Function.o.<computed> (http://127.0.0.1:55084/appservice/__dev__/WAService.js:1:1300810)
at Object.success (http://127.0.0.1:55084/appservice/__dev__/WAService.js:1:125836)
at b (http://127.0.0.1:55084/appservice/__dev__/WAService.js:1:526517)
at g (http://127.0.0.1:55084/appservice/__dev__/WAService.js:1:526760)
at http://127.0.0.1:55084/appservice/__dev__/WAService.js:1:528150
at Audit_setTimeout_pages/login/login (http://127.0.0.1:55084/appservice/__dev__/asdebug.js:1:11973)
at http://127.0.0.1:55084/appservice/appservice?t=1577241553357:9:42005
怎么一升级 这个玩意就报错了 ? 每次升级都要出一堆问题 腾讯呀腾讯
Cannot read property 'detail' of undefined;at pages/login/login page quickLogin function
TypeError: Cannot read property 'detail' of undefined
at l.quickLogin (https://miniprogram:///pages/login/login.js:207:19)
at l.<anonymous> (https://lib/WASubContext.js:2:1467496)
at l.bindGetUserInfo (https://miniprogram:///pages/login/login.js:138:12)
at l.<anonymous> (https://lib/WASubContext.js:2:1467496)
at Object.r.safeCallback (https://lib/WASubContext.js:2:1202662)
at https://lib/WASubContext.js:2:1381032
at r (https://lib/WASubContext.js:2:1330672)
at https://lib/WASubContext.js:2:1330860
at https://lib/WASubContext.js:2:563496
请具体描述问题出现的流程,并提供能复现问题的简单代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html