From eca8d34d5705f89b815588b7a10d32a96816db84 Mon Sep 17 00:00:00 2001 From: Craxy Z Date: Tue, 21 Aug 2018 12:24:06 +0800 Subject: [PATCH] fix for in loop. --- src/layouts/BasicLayout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index a0ca2286..fbb35bd9 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; -- GitLab