From 2e90ca02407b187a13efef0ffc2dcc6c9fca0c57 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 16 五月 2021 12:55:41 +0800
Subject: [PATCH] 2021-05-16

---
 src/menu/components/form/normal-form/index.jsx |   15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/src/menu/components/form/normal-form/index.jsx b/src/menu/components/form/normal-form/index.jsx
index 07a76d1..1610711 100644
--- a/src/menu/components/form/normal-form/index.jsx
+++ b/src/menu/components/form/normal-form/index.jsx
@@ -1,6 +1,5 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
-import {connect} from 'react-redux'
 import { is, fromJS } from 'immutable'
 import { Icon, Popover, Modal, Button, Switch, notification } from 'antd'
 import moment from 'moment'
@@ -119,7 +118,7 @@
   }
 
   shouldComponentUpdate (nextProps, nextState) {
-    return !is(fromJS(this.state), fromJS(nextState)) || (!this.props.menu && nextProps.menu)
+    return !is(fromJS(this.state), fromJS(nextState))
   }
 
   /**
@@ -702,14 +701,4 @@
   }
 }
 
-const mapStateToProps = (state) => {
-  return {
-    menu: state.customMenu
-  }
-}
-
-const mapDispatchToProps = () => {
-  return {}
-}
-
-export default connect(mapStateToProps, mapDispatchToProps)(PropCardEditComponent)
\ No newline at end of file
+export default PropCardEditComponent
\ No newline at end of file

--
Gitblit v1.8.0