From 8a1ee7d651500f848a3c2f05c7fe3be2b7114a43 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 10 四月 2024 00:47:56 +0800
Subject: [PATCH] 2024-04-10

---
 src/menu/components/card/cardcellcomponent/index.jsx |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/menu/components/card/cardcellcomponent/index.jsx b/src/menu/components/card/cardcellcomponent/index.jsx
index 44495b6..9c1dbd3 100644
--- a/src/menu/components/card/cardcellcomponent/index.jsx
+++ b/src/menu/components/card/cardcellcomponent/index.jsx
@@ -24,11 +24,12 @@
 
 class CardCellComponent extends Component {
   static propTpyes = {
-    cards: PropTypes.object,         // 鑿滃崟閰嶇疆淇℃伅
+    cards: PropTypes.object,
     cardCell: PropTypes.object,
     side: PropTypes.string,
-    elements: PropTypes.array,       // 鍏冪礌闆�
-    updateElement: PropTypes.func    // 鑿滃崟閰嶇疆鏇存柊
+    timestamp: PropTypes.any,
+    elements: PropTypes.array,
+    updateElement: PropTypes.func
   }
 
   state = {
@@ -74,7 +75,7 @@
   }
 
   UNSAFE_componentWillReceiveProps(nextProps) {
-    if (this.props.side !== nextProps.side && nextProps.side) {
+    if (this.props.timestamp !== nextProps.timestamp && nextProps.timestamp) {
       this.setState({
         elements: fromJS(nextProps.elements).toJS()
       })

--
Gitblit v1.8.0