Commit 6cadeff1 authored by afc163's avatar afc163

fxi key declaration

parent f9c3004c
...@@ -134,10 +134,10 @@ export default class BasicLayout extends React.PureComponent { ...@@ -134,10 +134,10 @@ 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 (key in Object.keys(routerData)) { for (const key in Object.keys(routerData)) {
if (pathToRegexp(key).test(pathname)) { if (pathToRegexp(key).test(pathname)) {
currRouterData = routerData[key]; currRouterData = routerData[key];
break break;
} }
} }
if (currRouterData && currRouterData.name) { if (currRouterData && currRouterData.name) {
......
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