From 285f06d1e7fc5ca1c1c4c0412bfc70ca0de00200 Mon Sep 17 00:00:00 2001 From: luckcoding Date: Thu, 13 Dec 2018 16:57:49 +0800 Subject: [PATCH] fix bread route has no matching lang --- src/components/Layout/Bread.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Layout/Bread.js b/src/components/Layout/Bread.js index 67cc7d6..db202f5 100644 --- a/src/components/Layout/Bread.js +++ b/src/components/Layout/Bread.js @@ -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 ( {paths.length - 1 !== key ? ( - {content} + {content} ) : ( content )}