king
2020-06-08 46fa548514ba2a438908586e2b54ed742777e9b0
src/templates/sharecomponent/fieldscomponent/index.jsx
@@ -1,6 +1,6 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import { fromJS } from 'immutable'
import { is, fromJS } from 'immutable'
import { Button, Modal, Empty, notification } from 'antd'
import Utils from '@/utils/utils.js'
@@ -204,6 +204,10 @@
    }
  }
  shouldComponentUpdate (nextProps, nextState) {
    return !is(fromJS(this.props), fromJS(nextProps)) || !is(fromJS(this.state), fromJS(nextState))
  }
  /**
   * @description 组件销毁,清除state更新
   */