张延森 hace 5 años
padre
commit
c7ed961e0a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/layouts/BasicLayout.jsx

+ 1
- 1
src/layouts/BasicLayout.jsx Ver fichero

58
   };
58
   };
59
 
59
 
60
   const findAuthority = (path) => {
60
   const findAuthority = (path) => {
61
-    return ((props.user.menuList || []).filter(x => x.code === path)[0] || {}).roles || []
61
+    return ((props.user.menuList || []).filter(x => x.code === path)[0] || {}).roles
62
   }
62
   }
63
   
63
   
64
   /**
64
   /**