diff --git a/src/components/OrgTree/Index.vue b/src/components/OrgTree/Index.vue index 496a569..70feb80 100644 --- a/src/components/OrgTree/Index.vue +++ b/src/components/OrgTree/Index.vue @@ -114,8 +114,8 @@ export default { methods: { // 点击组织机构数节点时调用 selectTree(selectedKeys, e) { - this.selectKey = e.node.eventKey; - this.selectTitle = e.node.title; + this.selectKey = e.node.dataRef.key; + this.selectTitle = e.node.dataRef.title; this.$emit('getSelectTreeKey', this.selectKey); }, // 展开/收起节点时触发