瀏覽代碼

消除eslint报错

qianjiacheng 7 年之前
父節點
當前提交
e47d4b12b6
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 }) => {
 export default ({ children, route, location }) => {
   const routes = matchRoutes(route.routes, location.pathname);
   const routes = matchRoutes(route.routes, location.pathname);
-  let authorities = [];
+  const authorities = [];
   routes.forEach(item => {
   routes.forEach(item => {
     if (Array.isArray(item.route.authority) && item.route.authority.length) {
     if (Array.isArray(item.route.authority) && item.route.authority.length) {
       authorities.push(item.route.authority);
       authorities.push(item.route.authority);