tree组件在for循环中无法使用getCheckedNodes这个方法 解决方法:加个索引 this.$refs[`tree${item.id}`][0].getCheckedKeys(); 链接:https://www.jianshu.com/p/9b5511d69318