From a7cba2f05df12ab546ef1c20b63aad10ec0e7a5c Mon Sep 17 00:00:00 2001
From: liyj <1003249715@qq.com>
Date: Fri, 30 Aug 2024 16:45:54 +0800
Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/gzzfw/frontEnd/gzDyh
---
gz-customerSystem/src/components/MyTree/index.jsx | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gz-customerSystem/src/components/MyTree/index.jsx b/gz-customerSystem/src/components/MyTree/index.jsx
index ca03c39..494de01 100644
--- a/gz-customerSystem/src/components/MyTree/index.jsx
+++ b/gz-customerSystem/src/components/MyTree/index.jsx
@@ -2,8 +2,8 @@
* @Company: hugeInfo
* @Author: ldh
* @Date: 2022-02-25 18:16:28
- * @LastEditTime: 2022-11-25 09:37:34
- * @LastEditors: ldh
+ * @LastEditTime: 2024-08-26 10:27:36
+ * @LastEditors: dminyi 1301963064@qq.com
* @Version: 1.0.0
* @Description: 自定义带操作的树结构
*/
@@ -53,7 +53,7 @@
arr2 = [];
treeDataMap.forEach((item) => {
const strTitle = item[nameStr];
- const index = strTitle.indexOf(searchValue);
+ const index = strTitle?.indexOf(searchValue);
if (index > -1) {
expandedKeys = Array.from(new Set([...expandedKeys, ...item.parentKeys]));
}
--
Gitblit v1.8.0