Browse Source

消除eslint报错

qianjiacheng 7 năm trước cách đây
mục cha
commit
e47d4b12b6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/pages/Authorized.js

+ 1 - 1
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);