From eee76430bace69ac77620b38e5974856546dfba4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Wed, 3 Apr 2019 17:22:22 +0800 Subject: [PATCH] bugfix:fix #3904 change to formatMessage --- src/components/PageHeaderWrapper/breadcrumb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/PageHeaderWrapper/breadcrumb.js b/src/components/PageHeaderWrapper/breadcrumb.js index 02fe66fd..29678748 100644 --- a/src/components/PageHeaderWrapper/breadcrumb.js +++ b/src/components/PageHeaderWrapper/breadcrumb.js @@ -1,7 +1,7 @@ import React from 'react'; import pathToRegexp from 'path-to-regexp'; import Link from 'umi/link'; -import { FormattedMessage } from 'umi-plugin-react/locale'; +import { formatMessage } from 'umi-plugin-react/locale'; import { urlToList } from '../_utils/pathTools'; // 渲染Breadcrumb 子节点 @@ -17,7 +17,7 @@ const itemRender = (route, params, routes, paths) => { const renderItemLocal = item => { if (item.locale) { - return ; + return formatMessage({ id: item.locale, defaultMessage: item.name }); } return item.name; }; -- GitLab