From e2a0aaf6955b904bbcc19ddcb7319e417dc84a86 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com>
Date: Tue, 11 Apr 2023 16:14:28 +0800
Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E9=97=A8=E9=BB=98=E8=AE=A4=E5=B1=95?=
=?UTF-8?q?=E5=BC=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/compenents/tree-department/index.tsx | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/src/compenents/tree-department/index.tsx b/src/compenents/tree-department/index.tsx
index 1644b9d..573105a 100644
--- a/src/compenents/tree-department/index.tsx
+++ b/src/compenents/tree-department/index.tsx
@@ -90,13 +90,16 @@ export const TreeDepartment = (props: PropInterface) => {
>
全部{props.text}
- }
- />
+ {treeData.length > 0 && (
+ }
+ />
+ )}
);
};