From e47d4b12b6e4e76fb0d3e03a23f3edee29ddca9a Mon Sep 17 00:00:00 2001 From: qianjiacheng Date: Thu, 6 Sep 2018 10:26:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E9=99=A4eslint=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Authorized.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Authorized.js b/src/pages/Authorized.js index b9d18f2f..e0e18d70 100644 --- a/src/pages/Authorized.js +++ b/src/pages/Authorized.js @@ -11,7 +11,7 @@ const Authorized = RenderAuthorized(getAuthority()); export default ({ children, route, location }) => { const routes = matchRoutes(route.routes, location.pathname); - let authorities = []; + const authorities = []; routes.forEach(item => { if (Array.isArray(item.route.authority) && item.route.authority.length) { authorities.push(item.route.authority); -- GitLab