Browse Source

bugfix (#970)

原代码错用 location 变量作为判断,会一直读取 window.location
pull/986/head
Alexius Lee 9 years ago
committed by 陈帅
parent
commit
74f5028855
  1. 2
      src/components/PageHeader/index.js

2
src/components/PageHeader/index.js

@ -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;

Loading…
Cancel
Save