Commit eca8d34d authored by Craxy Z's avatar Craxy Z Committed by 偏右

fix for in loop.

parent 3c2a056e
...@@ -134,7 +134,7 @@ export default class BasicLayout extends React.PureComponent { ...@@ -134,7 +134,7 @@ export default class BasicLayout extends React.PureComponent {
let title = 'Ant Design Pro'; let title = 'Ant Design Pro';
let currRouterData = null; let currRouterData = null;
// match params path // match params path
for (const key in Object.keys(routerData)) { for (const key in routerData) {
if (pathToRegexp(key).test(pathname)) { if (pathToRegexp(key).test(pathname)) {
currRouterData = routerData[key]; currRouterData = routerData[key];
break; break;
......
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