support level 2 breadcrumb

This commit is contained in:
jljsj33 2019-03-27 17:46:51 +08:00
parent bebbbe20f1
commit eecf0a61bf

View File

@ -51,7 +51,7 @@ const renderBreadcrumb = (breadcrumb: BreadcrumbProps) => {
const renderHeader = (prefixCls: string, props: PageHeaderProps) => {
const { breadcrumb, backIcon, onBack } = props;
if (breadcrumb && breadcrumb.routes && breadcrumb.routes.length > 2) {
if (breadcrumb && breadcrumb.routes && breadcrumb.routes.length >= 2) {
return renderBreadcrumb(breadcrumb);
}
return renderBack(prefixCls, backIcon, onBack);