mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-28 20:03:57 +00:00
fix bread route has no matching lang
This commit is contained in:
@@ -4,7 +4,7 @@ import { Breadcrumb, Icon } from 'antd'
|
||||
import Link from 'umi/navlink'
|
||||
import withRouter from 'umi/withRouter'
|
||||
import { withI18n } from '@lingui/react'
|
||||
import { pathMatchRegexp, queryAncestors } from 'utils'
|
||||
import { pathMatchRegexp, queryAncestors, addLangPrefix } from 'utils'
|
||||
import styles from './Bread.less'
|
||||
|
||||
@withI18n()
|
||||
@@ -24,7 +24,7 @@ class Bread extends PureComponent {
|
||||
return (
|
||||
<Breadcrumb.Item key={key}>
|
||||
{paths.length - 1 !== key ? (
|
||||
<Link to={item.route || '#'}>{content}</Link>
|
||||
<Link to={addLangPrefix(item.route) || '#'}>{content}</Link>
|
||||
) : (
|
||||
content
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user