From bc5ec1017fd8a140ec5c30ea9e8ea839d5bf1bda Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 15 十二月 2020 16:22:20 +0800
Subject: [PATCH] 2020-12-15

---
 src/menu/components/share/actioncomponent/index.jsx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/menu/components/share/actioncomponent/index.jsx b/src/menu/components/share/actioncomponent/index.jsx
index a56e70d..4d8860e 100644
--- a/src/menu/components/share/actioncomponent/index.jsx
+++ b/src/menu/components/share/actioncomponent/index.jsx
@@ -83,7 +83,7 @@
     const { config } = this.props
     const { card, actionlist } = this.state
 
-    if (comIds.length !== 2 || comIds[0] !== config.uuid || comIds[1] === 'header') return
+    if (comIds[0] !== config.uuid || comIds[1] !== 'actionlist') return
 
     let _card = fromJS(card).toJS()
     _card.btnstyle = style
@@ -110,7 +110,7 @@
       card: element
     })
 
-    MKEmitter.emit('changeStyle', [config.uuid, element.uuid], options, _style)
+    MKEmitter.emit('changeStyle', [config.uuid, 'actionlist', element.uuid], options, _style)
   }
 
   addButton = (cardId, element) => {

--
Gitblit v1.8.0