请教这边curdetail.child报错 error TypeError: Cannot read property 'child' of undefined
来源:7-8 首页菜单(2)

如沐春风242
2018-10-18
请教这边curdetail.child报错 error TypeError: Cannot read property ‘child’ of undefined
写回答
2回答
-
vylss
2018-10-19
你没贴代码出来很难判断。我之前也遇到undefined的问题,不知道跟你的问题是不是一样。
filter((item) => item.type === this.kind)[0]
如果写成
filter((item) => { item.type === this.kind })[0] 就会报undefined错误
00 -
如沐春风242
提问者
2018-10-19
测试了一下计算属性没有效果
00
相似问题