renderBreadcrumb() {
        const {routes} = this.props;
        const items = routes.map((route, idx) => {
            let content = null;
            if (idx == 0) {
                content = <IndexLink to="/">{route.name}</IndexLink>
            } else {
                content = route.name;
            }
            return <Breadcrumb.Item key={idx}>{content}</Breadcrumb.Item>;
        });
        return <Breadcrumb>{items}</Breadcrumb>;
    }



 {this.renderBreadcrumb()}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2021-08-26
  • 2021-10-08
  • 2021-12-03
猜你喜欢
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
  • 2021-05-29
  • 2021-05-12
相关资源
相似解决方案