Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

TypeError: Cannot read property 'key' of undefined #26

Open
y-cares opened this issue Jan 25, 2018 · 1 comment
Open

TypeError: Cannot read property 'key' of undefined #26

y-cares opened this issue Jan 25, 2018 · 1 comment

Comments

@y-cares
Copy link

y-cares commented Jan 25, 2018

问题详情:
父组件往子组件传递数据,
vo9k xwvj7 arza4 ot5ix9
r3 2 4 2_ woor lx_x y

子组件接受数据并定义一个默认值:
5yjje o u7 9 ff i wk4k
当点击按钮时,删除该数组的任一值
_ vt9g v n at_6ko hew
数据正常发生了改变,但是却报错:
s1s 5c 9 zn w22is 0tkzu

但是,以同样的过程,改变一个我自己创建的数组里的数据时,却没有报错:
vc d81nplvznih s6qa 6
image
说明我的方法是没问题的,但是为什么删除传过来的数组里的任一值值却报错,往这个数组添加任一值,却不报错???

@y-cares
Copy link
Author

y-cares commented Jan 25, 2018

报错详情:
zbw14ut gwuy2lgfplc5t

@y-cares y-cares closed this as completed Jan 25, 2018
@y-cares y-cares reopened this Jan 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant