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/commontable/index.jsx |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/tabviews/commontable/index.jsx b/src/tabviews/commontable/index.jsx
index 24c0f60..ce24774 100644
--- a/src/tabviews/commontable/index.jsx
+++ b/src/tabviews/commontable/index.jsx
@@ -13,8 +13,6 @@
 import {refreshTabView, modifyTabview} from '@/store/action'
 
 import MainTable from '@/tabviews/zshare/normalTable'
-// import MainAction from '@/tabviews/zshare/actionList'
-// import VerifyCard from '@/tabviews/zshare/verifycard'
 import MainSearch from '@/tabviews/zshare/topSearch'
 import NotFount from '@/components/404'
 import './index.scss'
@@ -363,7 +361,7 @@
               triggerBtn: {
                 uuid: new Date().getTime(),
                 parentId: key,
-                button: item,
+                button: {...item, uuid: btnkey},
                 data: null
               }
             })
@@ -1049,6 +1047,11 @@
         this.reloadview()
       }
       this.props.refreshTabView('')
+    } else if (!is(fromJS(this.props.tabviews), fromJS(nextProps.tabviews))) {
+      let selectTab = nextProps.tabviews.filter(tab => tab.selected)[0]
+      if (selectTab && selectTab.MenuID === this.props.MenuID) {
+        this.setShortcut()
+      }
     }
   }
 

--
Gitblit v1.8.0