king
2022-01-02 bde2916433c7830e2879e6524e32b9f6c8bd0bab
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 />
    }
  }
}