From 977ce3d348f898d64ea240c8397b83d3e1cc5bb4 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 18 十二月 2019 09:23:05 +0800
Subject: [PATCH] 2019-12-18

---
 src/components/tabview/index.jsx |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/components/tabview/index.jsx b/src/components/tabview/index.jsx
index a0ab705..acc9236 100644
--- a/src/components/tabview/index.jsx
+++ b/src/components/tabview/index.jsx
@@ -63,7 +63,16 @@
     this.setState({
       selectedTabId: menu.MenuID
     })
-
+    let tabs = JSON.parse(JSON.stringify(this.props.tabviews))
+    tabs = tabs.map(tab => {
+      if (tab.MenuID === menu.MenuID) {
+        tab.selected = true
+      } else {
+        tab.selected = false
+      }
+      return tab
+    })
+    this.props.modifyTabview(tabs)
     this.resetWindow(menu)
   }
 
@@ -144,7 +153,6 @@
       this.setState({
         selectedTabId: view ? view.MenuID : ''
       })
-
       this.resetWindow(view)
     }
   }

--
Gitblit v1.8.0