fix: 首页隐藏面包屑

This commit is contained in:
wenbo.dong 2017-07-28 17:42:19 +08:00
parent cd701cd7fc
commit 789f62b0c7

View File

@ -33,11 +33,14 @@ export default class BreadcrumbNavigation extends Component {
<Link to="/">Home</Link>
</Breadcrumb.Item>
)].concat(extraBreadcrumbItems);
console.log(pathSnippets);
return (
<Breadcrumb className="breadcrumb-container">
{breadcrumbItems}
</Breadcrumb>
)
if (pathSnippets.length) {
return (
<Breadcrumb className="breadcrumb-container">
{breadcrumbItems}
</Breadcrumb>
)
} else {
return <span></span>;
}
}
}