Commit e21642b3 authored by ddcat1115's avatar ddcat1115

fix pageTitle for BasicLayout

parent 035ef3d2
...@@ -152,7 +152,7 @@ class BasicLayout extends React.PureComponent { ...@@ -152,7 +152,7 @@ class BasicLayout extends React.PureComponent {
const { location } = this.props; const { location } = this.props;
const { pathname } = location; const { pathname } = location;
let title = 'Ant Design Pro'; let title = 'Ant Design Pro';
getRouteData('UserLayout').forEach((item) => { getRouteData('BasicLayout').forEach((item) => {
if (item.path === pathname) { if (item.path === pathname) {
title = `${item.name} - Ant Design Pro`; title = `${item.name} - Ant Design Pro`;
} }
......
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