diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index a0ca22864cdbd878e8582330e82ebb249995ecf8..fbb35bd9092f23d8c0cfb9fa604263398ae50fe6 100644 --- a/src/layouts/BasicLayout.js +++ b/src/layouts/BasicLayout.js @@ -134,7 +134,7 @@ export default class BasicLayout extends React.PureComponent { let title = 'Ant Design Pro'; let currRouterData = null; // match params path - for (const key in Object.keys(routerData)) { + for (const key in routerData) { if (pathToRegexp(key).test(pathname)) { currRouterData = routerData[key]; break;