From 20fda7434c88eae3237399a008f6ae0db50d0eab Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 15 九月 2022 19:12:29 +0800
Subject: [PATCH] 2022-09-15

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

diff --git a/src/menu/components/card/cardsimplecomponent/index.jsx b/src/menu/components/card/cardsimplecomponent/index.jsx
index 54f44b0..67e71fb 100644
--- a/src/menu/components/card/cardsimplecomponent/index.jsx
+++ b/src/menu/components/card/cardsimplecomponent/index.jsx
@@ -82,7 +82,6 @@
   }
   
   addElement = () => {
-    const { cards } = this.props
     const { card } = this.state
 
     let newcard = {}
@@ -98,11 +97,10 @@
     window.GLOB.$lock = false
 
     // 娉ㄥ唽浜嬩欢-娣诲姞鍏冪礌
-    MKEmitter.emit('cardAddElement', [cards.uuid, card.uuid], newcard)
+    MKEmitter.emit('cardAddElement', card.uuid, newcard)
   }
 
   addButton = () => {
-    const { cards } = this.props
     const { card } = this.state
 
     let newcard = {eleType: 'button', label: 'button', verify: null, show: 'link', sqlType: '', Ot: 'requiredSgl', OpenType: 'prompt', icon: '', class: 'primary', intertype: 'system', execSuccess: 'grid', execError: 'never', popClose: 'never'}
@@ -111,7 +109,7 @@
     
 
     // 娉ㄥ唽浜嬩欢-娣诲姞鍏冪礌
-    MKEmitter.emit('cardAddElement', [cards.uuid, card.uuid], newcard)
+    MKEmitter.emit('cardAddElement', card.uuid, newcard)
   }
 
   changeStyle = () => {

--
Gitblit v1.8.0