后端有时候需要父节点的id 最常用的方法是: this.$refs.tree.getCheckedKeys().concat(this.$refs.tree.getHalfCheckedKeys()) ;