Cannot read property 'data' of undefined;at "pages/wenda/detail/detail" page lifeCycleMethod onLoad function
TypeError: Cannot read property 'data' of undefined
问题背景是:登录功能的后端没有报错,前端显示状态码是0,但是还是报这个错
最后发现问题在login.js文件,应该是有个变量写错了。如图
将图中框出来的位置改成result
问题解决