From 0fe7659a978cbedd95715bbba93b9edf65176640 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 24 十二月 2021 21:35:21 +0800
Subject: [PATCH] 2021-12-24

---
 src/tabviews/zshare/actionList/excelInbutton/index.jsx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tabviews/zshare/actionList/excelInbutton/index.jsx b/src/tabviews/zshare/actionList/excelInbutton/index.jsx
index 617357d..c146924 100644
--- a/src/tabviews/zshare/actionList/excelInbutton/index.jsx
+++ b/src/tabviews/zshare/actionList/excelInbutton/index.jsx
@@ -70,7 +70,7 @@
   }
 
   UNSAFE_componentWillReceiveProps (nextProps) {
-    const { btn, selectedData } = this.props
+    const { btn, selectedData, BData } = this.props
 
     if (btn.controlField && !is(fromJS(nextProps.selectedData || []), fromJS(selectedData || []))) {
       let disabled = false
@@ -84,7 +84,7 @@
         })
       }
       this.setState({disabled, hidden: disabled && btn.control === 'hidden'})
-    } else if (btn.control === 'parent') {
+    } else if (btn.control === 'parent' && !is(fromJS(nextProps.BData || {}), fromJS(BData || {}))) {
       if (!nextProps.BData || !nextProps.BData.hasOwnProperty(btn.controlField)) {
         this.setState({hidden: true})
       } else {

--
Gitblit v1.8.0