From 1da6506bf58270bacc2a4345002c6b082835580e Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 21 十月 2021 23:17:08 +0800
Subject: [PATCH] 2021-10-21

---
 src/tabviews/zshare/cardcomponent/index.jsx |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/tabviews/zshare/cardcomponent/index.jsx b/src/tabviews/zshare/cardcomponent/index.jsx
index ab96602..df34ca4 100644
--- a/src/tabviews/zshare/cardcomponent/index.jsx
+++ b/src/tabviews/zshare/cardcomponent/index.jsx
@@ -5,6 +5,7 @@
 
 import asyncComponent from '@/utils/asyncComponent'
 import asyncExcelComponent from './asyncButtonComponent'
+import MKEmitter from '@/utils/events.js'
 import '@/assets/css/table.scss'
 import './index.scss'
 
@@ -181,7 +182,7 @@
           />
         )
       } else if (item.OpenType === 'funcbutton') {
-        if (item.funcType === 'changeuser') {
+        if (item.funcType === 'changeuser' || item.funcType === 'closetab') {
           return (
             <ChangeUserButton
               key={item.uuid}
@@ -244,7 +245,7 @@
           if (isNaN(originVal) || isNaN(contrastVal)) {
             originVal = ''
           }
-        } catch {
+        } catch (e) {
           originVal = ''
         }
       }
@@ -331,7 +332,7 @@
           if (isNaN(content)) {
             content = ''
           }
-        } catch {
+        } catch (e) {
           content = ''
         }
       }
@@ -513,7 +514,6 @@
     tableId: PropTypes.string,
     loading: PropTypes.bool,
     data: PropTypes.array,
-    handleTableId: PropTypes.func
   }
 
   state = {
@@ -735,7 +735,7 @@
 
     this.setState({selectKey: data.key})
 
-    this.props.handleTableId(this.props.tableId, _id, data)
+    MKEmitter.emit('changeTableLine', this.props.ContainerId, this.props.tableId, _id, data)
   }
 
   render() {

--
Gitblit v1.8.0