diff --git a/src/pages/Authorized.js b/src/pages/Authorized.js index b9d18f2fd66346a717508f34a93e17e9cd73d0c1..e0e18d7036e0fccee6ce33ad6b49e9ca7cf7626b 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);