king
2021-01-07 0a0372f158b7a4c786c67be6a6e3c84ff7608904
src/menu/components/chart/antv-pie/index.jsx
@@ -334,7 +334,7 @@
  updateComponent = (component) => {
    const card = fromJS(this.state.card).toJS()
    let refresh = false
    if (!is(fromJS(component.plot), fromJS(card.plot))) {
    if (!is(fromJS(component.plot), fromJS(card.plot)) || !is(fromJS(component.style), fromJS(card.style))) {
      let _element = document.getElementById(card.uuid + 'canvas')
      if (_element) {
        _element.innerHTML = ''
@@ -391,11 +391,12 @@
    let _card = {...card, style}
    this.setState({
      card: _card
    })
    this.updateComponent(_card)
    // this.setState({
    //   card: _card
    // })
    
    this.props.updateConfig(_card)
    // this.props.updateConfig(_card)
  }
  handleLog = (type, logs, item) => {