fix: breadcrumb duplicate keys detected #2505

close #2505
pull/2525/head
tangjinzhou 2020-07-05 11:08:03 +08:00
parent fff8d6ca4a
commit fa06586070
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ export default {
overlay = ( overlay = (
<Menu> <Menu>
{route.children.map(child => ( {route.children.map(child => (
<Menu.Item key={child.breadcrumbName || child.path}> <Menu.Item key={child.path || child.breadcrumbName}>
{itemRender({ {itemRender({
route: child, route: child,
params, params,