From eecf0a61bfc5197bfe3b1a3bb2d1cb4d8c7364bd Mon Sep 17 00:00:00 2001 From: jljsj33 Date: Wed, 27 Mar 2019 17:46:51 +0800 Subject: [PATCH] support level 2 breadcrumb --- components/page-header/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/page-header/index.tsx b/components/page-header/index.tsx index 9fb79f0971..7427ed22e3 100644 --- a/components/page-header/index.tsx +++ b/components/page-header/index.tsx @@ -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);