张延森 пре 5 година
родитељ
комит
c7ed961e0a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      src/layouts/BasicLayout.jsx

+ 1
- 1
src/layouts/BasicLayout.jsx Прегледај датотеку

@@ -58,7 +58,7 @@ const BasicLayout = props => {
58 58
   };
59 59
 
60 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
   /**