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/normalbutton/index.jsx | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tabviews/zshare/actionList/normalbutton/index.jsx b/src/tabviews/zshare/actionList/normalbutton/index.jsx index 5d0b6c5..c29c578 100644 --- a/src/tabviews/zshare/actionList/normalbutton/index.jsx +++ b/src/tabviews/zshare/actionList/normalbutton/index.jsx @@ -96,7 +96,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 @@ -110,7 +110,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