Skip to content

Commit

Permalink
fix:breadcrumb组件去除展平路由
Browse files Browse the repository at this point in the history
  • Loading branch information
hejiaqiang committed Mar 21, 2022
1 parent 75a9c13 commit dccba8e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/common/breadcrumb/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@ import { useHistory } from 'react-router-dom'
import withBreadcrumbs from 'react-router-breadcrumbs-hoc'
import { Breadcrumb, Button } from 'antd'
import routes from '@/route/routes'
import { flattenRoutes } from '@/assets/js/publicFunc'

const allRoutes = flattenRoutes(routes)

interface Props {
breadcrumbs: any[];
breadcrumbs: any[]
}

// 通用面包屑
Expand Down Expand Up @@ -39,4 +36,4 @@ const Breadcrumbs: FC<Props> = ({ breadcrumbs }) => {
)
}

export default withBreadcrumbs(allRoutes)(Breadcrumbs)
export default withBreadcrumbs(routes)(Breadcrumbs)

0 comments on commit dccba8e

Please sign in to comment.