From b5364600d98c8749caba625ec813d4fe670d0a19 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 16 十二月 2021 17:29:55 +0800
Subject: [PATCH] 2021-12-16

---
 src/tabviews/custom/components/tree/antd-tree/index.jsx |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/tabviews/custom/components/tree/antd-tree/index.jsx b/src/tabviews/custom/components/tree/antd-tree/index.jsx
index 889398a..fc666d5 100644
--- a/src/tabviews/custom/components/tree/antd-tree/index.jsx
+++ b/src/tabviews/custom/components/tree/antd-tree/index.jsx
@@ -170,7 +170,7 @@
     const { config } = this.state
 
     if (!config.setting.supModule || config.setting.supModule !== MenuID) return
-    if (id !== this.state.BID) {
+    if (id !== this.state.BID || id !== '') {
       this.setState({ BID: id }, () => {
         this.loadData()
       })
@@ -252,14 +252,14 @@
       logMap.set(val, true)
       if (pval === config.wrap.mark) {
         parentNodes.push({
-          // ...item,
+          ...item,
           $title: item[config.wrap.labelField] || '',
           $key: val,
           $parentId: ''
         })
       } else if (pval) {
         _options.push({
-          // ...item,
+          ...item,
           $title: item[config.wrap.labelField] || '',
           $key: val,
           $parentId: pval
@@ -416,6 +416,7 @@
     }
 
     if (selected) {
+      delete _data.children
       MKEmitter.emit('resetSelectLine', config.uuid, (_data ? _data.$key : ''), _data)
     }
 

--
Gitblit v1.8.0