From 96fad333c7f887717695f54e0db9e0966e81a7d6 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 16 六月 2023 18:08:30 +0800
Subject: [PATCH] 2023-06-16

---
 src/tabviews/custom/components/table/edit-table/index.jsx |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/tabviews/custom/components/table/edit-table/index.jsx b/src/tabviews/custom/components/table/edit-table/index.jsx
index f21a620..f0cfdb3 100644
--- a/src/tabviews/custom/components/table/edit-table/index.jsx
+++ b/src/tabviews/custom/components/table/edit-table/index.jsx
@@ -507,15 +507,17 @@
 
     if (config.uuid !== menuId) return
     
-    let _data = fromJS(this.state.data).toJS().forEach(item => {
+    let _data = fromJS(this.state.data).toJS().map(item => {
       if (item.$$uuid === uuid) {
         item[btn.field] = count
       }
+      return item
     })
-    let _selectedData = fromJS(this.state.selectedData).toJS().forEach(item => {
+    let _selectedData = fromJS(this.state.selectedData).toJS().map(item => {
       if (item.$$uuid === uuid) {
         item[btn.field] = count
       }
+      return item
     })
 
     this.setState({

--
Gitblit v1.8.0