【解决】el-tree报Cannot read property ‘getCheckedKeys‘ of undefined

如果你报错

Cannot read property 'getCheckedKeys' of undefined

或者

Cannot read property 'getCheckedNodes' of undefined

 只要在你的在上加个这个,就可以了

  ref="tree"

【解决】el-tree报Cannot read property ‘getCheckedKeys‘ of undefined_第1张图片

 

你可能感兴趣的:(vue.js,javascript,前端)