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/tabviews/custom/components/card/prop-card/index.jsx |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/tabviews/custom/components/card/prop-card/index.jsx b/src/tabviews/custom/components/card/prop-card/index.jsx
index 9f47cca..1e01bd4 100644
--- a/src/tabviews/custom/components/card/prop-card/index.jsx
+++ b/src/tabviews/custom/components/card/prop-card/index.jsx
@@ -230,13 +230,15 @@
   }
 
   changeCard = (index, item) => {
-    const { config } = this.state
+    const { config, data, activeKey } = this.state
 
-    if (config.wrap.switch !== 'true') return
+    if (!config.wrap.cardType || activeKey === index) return
 
     this.setState({
       activeKey: index
     })
+
+    MKEmitter.emit('resetSelectLine', config.uuid, (item.setting.primaryId || ''), data)
   }
 
   render() {

--
Gitblit v1.8.0