king
2021-12-22 bd1dfc9e6c9b9f8076ca2783ce598e0936b4c664
src/utils/asyncIconComponent.jsx
@@ -1,5 +1,5 @@
import React, {Component} from 'react'
import { Icon } from 'antd'
import { LoadingOutlined } from '@ant-design/icons'
/**
 * @description 异步加载模块
@@ -24,7 +24,7 @@
    render() {
      const C = this.state.component
      return C ? <C {...this.props} /> : <Icon type="loading" />
      return C ? <C {...this.props} /> : <LoadingOutlined />
    }
  }
}