diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index ea849599262996a20369c0539f51e217299e92ec..aa29acc7cd2b7c74fe8348f53b4686cf89d96f60 100644 --- a/src/layouts/BasicLayout.js +++ b/src/layouts/BasicLayout.js @@ -171,7 +171,7 @@ class BasicLayout extends React.PureComponent { const pathKey = Object.keys(this.breadcrumbNameMap).find(key => pathToRegexp(key).test(pathname) ); - return this.breadcrumbNameMap[pathKey] || {}; + return this.breadcrumbNameMap[pathKey]; }; getPageTitle = pathname => { @@ -261,7 +261,10 @@ class BasicLayout extends React.PureComponent { {...this.props} /> - }> + } + > {children}