king
2024-01-12 7a6679fff0ac197b01aa7edb940b24f09c88ed2a
src/utils/asyncLoadComponent.jsx
@@ -21,12 +21,18 @@
      this.setState({component})
    }
    componentWillUnmount () {
      this.setState = () => {
        return
      }
    }
    render() {
      const C = this.state.component
      return C ?
        <C {...this.props} /> :
        <Spin style={{position: 'fixed', left: 'calc(50vw - 22px)', top: 'calc(50vh - 70px)'}} size="large" />
        <Spin style={{position: 'fixed', left: 'calc(50vw - 22px)', top: 'calc(50vh - 70px)', zIndex: 10}} size="large" />
    }
  }
}