如果你报错
Cannot read property 'getCheckedKeys' of undefined
或者
Cannot read property 'getCheckedNodes' of undefined
只要在你的在<el-tree>上加个这个,就可以了
ref="tree"
文章来源:https://www.toymoban.com/news/detail-620847.html
文章来源地址https://www.toymoban.com/news/detail-620847.html
到了这里,关于【解决】el-tree报Cannot read property ‘getCheckedKeys‘ of undefined Cannot read property 'getCheckedKeys' of undefined的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!