|
|
@ -171,7 +171,7 @@ class BasicLayout extends React.PureComponent { |
|
|
const pathKey = Object.keys(this.breadcrumbNameMap).find(key => |
|
|
const pathKey = Object.keys(this.breadcrumbNameMap).find(key => |
|
|
pathToRegexp(key).test(pathname) |
|
|
pathToRegexp(key).test(pathname) |
|
|
); |
|
|
); |
|
|
return this.breadcrumbNameMap[pathKey] || {}; |
|
|
return this.breadcrumbNameMap[pathKey]; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
getPageTitle = pathname => { |
|
|
getPageTitle = pathname => { |
|
|
@ -261,7 +261,10 @@ class BasicLayout extends React.PureComponent { |
|
|
{...this.props} |
|
|
{...this.props} |
|
|
/> |
|
|
/> |
|
|
<Content style={this.getContentStyle()}> |
|
|
<Content style={this.getContentStyle()}> |
|
|
<Authorized authority={routerConfig.authority} noMatch={<Exception403 />}> |
|
|
<Authorized |
|
|
|
|
|
authority={routerConfig && routerConfig.authority} |
|
|
|
|
|
noMatch={<Exception403 />} |
|
|
|
|
|
> |
|
|
{children} |
|
|
{children} |
|
|
</Authorized> |
|
|
</Authorized> |
|
|
</Content> |
|
|
</Content> |
|
|
|