From 20b0dd9694273aea96c84831a6dbaa7838ea79b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Sun, 7 Apr 2019 09:37:37 +0800 Subject: [PATCH] bugfix: fix #3910, fix custom breadcrumbs error reporting --- src/components/PageHeaderWrapper/breadcrumb.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/PageHeaderWrapper/breadcrumb.js b/src/components/PageHeaderWrapper/breadcrumb.js index 29678748..66ca8b9c 100644 --- a/src/components/PageHeaderWrapper/breadcrumb.js +++ b/src/components/PageHeaderWrapper/breadcrumb.js @@ -93,7 +93,11 @@ export const conversionBreadcrumbList = props => { const { breadcrumbList } = props; const { routes, params, routerLocation, breadcrumbNameMap } = getBreadcrumbProps(props); if (breadcrumbList && breadcrumbList.length) { - return conversionFromProps(); + return { + routes: conversionFromProps(props), + params, + itemRender, + }; } // 如果传入 routes 和 params 属性 // If pass routes and params attributes -- GitLab