Commit 74f50288 authored by Alexius Lee's avatar Alexius Lee Committed by 陈帅

bugfix (#970)

原代码错用 location 变量作为判断,会一直读取 window.location
parent 3b826259
...@@ -132,7 +132,7 @@ export default class PageHeader extends PureComponent { ...@@ -132,7 +132,7 @@ export default class PageHeader extends PureComponent {
} }
// 根据 location 生成 面包屑 // 根据 location 生成 面包屑
// Generate breadcrumbs based on location // Generate breadcrumbs based on location
if (location && location.pathname) { if (routerLocation && routerLocation.pathname) {
return this.conversionFromLocation(routerLocation, breadcrumbNameMap); return this.conversionFromLocation(routerLocation, breadcrumbNameMap);
} }
return null; return null;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment