diff --git a/src/components/OrgTree/Index.vue b/src/components/OrgTree/Index.vue index c53935e..0b3b1bf 100644 --- a/src/components/OrgTree/Index.vue +++ b/src/components/OrgTree/Index.vue @@ -122,6 +122,8 @@ export default { selectTree(selectedKeys, e) { this.selectKey = e.node.dataRef.key; this.selectTitle = e.node.dataRef.title; + this.defaultSelectedKeys = []; + this.defaultSelectedKeys.push(this.selectKey); this.$emit('getSelectTreeKey', this.selectKey); }, // 展开/收起节点时触发