项目跟练的时候

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘code’)
at Proxy.userInfo (user.ts:57:17)
因此我想要用result接受信息的时候会出错,报错显示为result.code没有该值

导致我无法获取到相应的数据

解决如下
给get方法添加return

成功获取到值

vue上也有了相应的展示

windows下搭建RTMP视频服务器
阅读 27
2024-11-18
项目跟练的时候

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘code’)
at Proxy.userInfo (user.ts:57:17)
因此我想要用result接受信息的时候会出错,报错显示为result.code没有该值

导致我无法获取到相应的数据

解决如下
给get方法添加return

成功获取到值

vue上也有了相应的展示

相关推荐
精彩评论(0)