king
2022-09-19 46059e342d70b51bd9775f30feb5f29304bda6ac
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 />
    }
  }
}