陈帅 8 лет назад
Родитель
Сommit
affacb7cdc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/components/PageHeader/index.js

+ 1 - 1
src/components/PageHeader/index.js

@@ -72,7 +72,7 @@ export default class PageHeader extends PureComponent {
           itemRender={this.itemRender}
           itemRender={this.itemRender}
         />
         />
       );
       );
-    } else if (location && location.pathname) {
+    } else if (location && location.pathname && (!breadcrumbList)) {
       const pathSnippets = location.pathname.split('/').filter(i => i);
       const pathSnippets = location.pathname.split('/').filter(i => i);
       const extraBreadcrumbItems = pathSnippets.map((_, index) => {
       const extraBreadcrumbItems = pathSnippets.map((_, index) => {
         const url = `/${pathSnippets.slice(0, index + 1).join('/')}`;
         const url = `/${pathSnippets.slice(0, index + 1).join('/')}`;