From affacb7cdcf1a1ff32ac31f56518bba14897ee92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Thu, 21 Dec 2017 14:26:06 +0800 Subject: [PATCH] fix 437 (#477) --- src/components/PageHeader/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PageHeader/index.js b/src/components/PageHeader/index.js index ebaf7498..af1d1814 100644 --- a/src/components/PageHeader/index.js +++ b/src/components/PageHeader/index.js @@ -72,7 +72,7 @@ export default class PageHeader extends PureComponent { itemRender={this.itemRender} /> ); - } else if (location && location.pathname) { + } else if (location && location.pathname && (!breadcrumbList)) { const pathSnippets = location.pathname.split('/').filter(i => i); const extraBreadcrumbItems = pathSnippets.map((_, index) => { const url = `/${pathSnippets.slice(0, index + 1).join('/')}`; -- GitLab