el-tree 获取已选和清空已选

清空树

this.$refs.tree.setCheckedKeys([])

获取已选树

const tree = this.$refs['tree']
this.selIds = tree.getCheckedKeys().concat(tree.getHalfCheckedKeys())
原文地址:https://www.cnblogs.com/HDWdemo/p/14886352.html