mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
fix: 首页隐藏面包屑
This commit is contained in:
parent
cd701cd7fc
commit
789f62b0c7
@ -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>;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user