king
2025-05-27 a5bc394eceeaae5923057f1fd919968fd234af23
src/utils/asyncSpinComponent.jsx
@@ -21,12 +21,18 @@
      this.setState({component})
    }
    componentWillUnmount () {
      this.setState = () => {
        return
      }
    }
    render() {
      const C = this.state.component
      return C ?
        <C {...this.props} /> :
        <div className="async-spin" style={{textAlign: 'center', minHeight: 50, lineHeight: '50px'}}><Spin/></div>
        <div className="async-spin" style={{textAlign: 'center', minHeight: 50, lineHeight: '50px', background: '#ffffff'}}><Spin/></div>
    }
  }
}