求问大佬这个错误怎么解决?

发布于 9 年前作者 zyin14918 次浏览最后编辑 9 年前来自 issues

thirdScriptError

Cannot read property ‘userInfo’ of undefined;at App onLaunch function;at api cloud.callFunction complete callback function

TypeError: Cannot read property ‘userInfo’ of undefined

2 回复
htao
htao1 楼6 年前

微信早就申明event中的userInfo将会取消。

yan06
yan062 楼6 年前

把你代码有关userInfo检查一下,你应该是直接使用了userInfo而不是this.data.userInfo