From f4aa89746b1dffdcf17a26a6d9c753d500adac65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Tue, 9 May 2023 10:02:42 +0800 Subject: [PATCH] =?UTF-8?q?tree=E7=BB=84=E4=BB=B6=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=90=8E=E5=88=86=E7=B1=BB=E5=90=8D=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/compenents/tree-department/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compenents/tree-department/index.tsx b/src/compenents/tree-department/index.tsx index 09c7361..1da5c94 100644 --- a/src/compenents/tree-department/index.tsx +++ b/src/compenents/tree-department/index.tsx @@ -120,7 +120,7 @@ export const TreeDepartment = (props: PropInterface) => { const onSelect = (selectedKeys: any, info: any) => { let label = "全部" + props.text; if (info) { - label = info.node.title; + label = info.node.title.props.children; } props.onUpdate(selectedKeys, label); setSelectKey(selectedKeys); @@ -129,7 +129,7 @@ export const TreeDepartment = (props: PropInterface) => { const onExpand = (selectedKeys: any, info: any) => { let label = "全部" + props.text; if (info) { - label = info.node.title; + label = info.node.title.props.children; } props.onUpdate(selectedKeys, label); setSelectKey(selectedKeys);