From c69726e30d4889fda99480aa3d0bb72f04eba6d9 Mon Sep 17 00:00:00 2001 From: qinjie Date: Wed, 1 Sep 2021 14:49:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E7=BB=87=E6=9C=BA=E6=9E=84=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E7=BB=84=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/OrgTree/Index.vue | 2 ++ 1 file changed, 2 insertions(+) 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); }, // 展开/收起节点时触发