|
|
@@ -132,7 +132,7 @@ export default class PageHeader extends PureComponent {
|
|
|
}
|
|
|
// 根据 location 生成 面包屑
|
|
|
// Generate breadcrumbs based on location
|
|
|
- if (location && location.pathname) {
|
|
|
+ if (routerLocation && routerLocation.pathname) {
|
|
|
return this.conversionFromLocation(routerLocation, breadcrumbNameMap);
|
|
|
}
|
|
|
return null;
|