From 5423c7caa9723e0b232ea6c5ef4aaf90bd7a3334 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 21 十月 2020 14:46:25 +0800
Subject: [PATCH] 2020-10-21

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

diff --git a/src/components/tabview/index.jsx b/src/components/tabview/index.jsx
index ba0c4c4..5e5860e 100644
--- a/src/components/tabview/index.jsx
+++ b/src/components/tabview/index.jsx
@@ -52,7 +52,7 @@
   handleTabview = (e, menu) => {
     e.stopPropagation()
     // 鍏抽棴tab椤碉紝閲嶆柊閫夋嫨鏄剧ず椤�
-    let tabs = JSON.parse(JSON.stringify(this.state.tabviews))
+    let tabs = fromJS(this.state.tabviews).toJS()
     tabs = tabs.filter(tab => {
       return tab.MenuID !== menu.MenuID
     })
@@ -78,7 +78,7 @@
   changeTab = (e, menu) => {
     e.stopPropagation()
     // 绐楀彛鍒囨崲
-    let tabs = JSON.parse(JSON.stringify(this.state.tabviews))
+    let tabs = fromJS(this.state.tabviews).toJS()
     tabs = tabs.map(tab => {
       tab.selected = false
 

--
Gitblit v1.8.0