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 /> } } }