From f7d1f17bdcb8c3e794a798165737bb7529dbe8ca Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 26 三月 2020 12:15:19 +0800
Subject: [PATCH] 2020-03-26

---
 src/tabviews/zshare/actionList/index.jsx |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/zshare/actionList/index.jsx b/src/tabviews/zshare/actionList/index.jsx
index 1898fda..4536ca8 100644
--- a/src/tabviews/zshare/actionList/index.jsx
+++ b/src/tabviews/zshare/actionList/index.jsx
@@ -53,7 +53,13 @@
   UNSAFE_componentWillReceiveProps(nextProps) {
     if (nextProps.triggerBtn && !is(fromJS(this.props.triggerBtn), fromJS(nextProps.triggerBtn)) && nextProps.triggerBtn.parentId === this.props.MenuID) {
       if (!this.state.loadingUuid && !this.state.visible && !this.state.running) {
-        this.actionTrigger(nextProps.triggerBtn.button, nextProps.triggerBtn.data)
+        let _btn = nextProps.triggerBtn.button
+        if (!_btn.OpenType) {
+          _btn = this.props.actions.filter(item => item.uuid === _btn.uuid)[0]
+        }
+        if (_btn) {
+          this.actionTrigger(_btn, nextProps.triggerBtn.data)
+        }
       }
     }
   }

--
Gitblit v1.8.0