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/exceloutbutton/index.jsx | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tabviews/zshare/actionList/exceloutbutton/index.jsx b/src/tabviews/zshare/actionList/exceloutbutton/index.jsx index 79ef835..b8be25b 100644 --- a/src/tabviews/zshare/actionList/exceloutbutton/index.jsx +++ b/src/tabviews/zshare/actionList/exceloutbutton/index.jsx @@ -61,9 +61,9 @@ } UNSAFE_componentWillReceiveProps (nextProps) { - const { btn } = this.props + const { btn, BData } = this.props - if (btn.control === 'parent') { + 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