message: fix:fix get permission function
diff: */
  import memoizeOne from 'memoize-one';
  -export default function getPermissions(
  - perm: string,
  - view: string,
  - roles: object,
  -) {
  - return memoizeOne(() => {
  +const findPermissions = (perm: string, view: string, roles: object) => {
  const roleList = Object.entries(roles);
  if (roleList.length === 0) return false;
  let bool;
  @@ -36,7 +31,9 @@ export default function getPermissions(
  ),
  );
  });
  - console.log('bool', bool);
  return bool;
  - });
  -}
  +};
  +
  +const getPermissions = memoizeOne(findPermissions);
  +
  +export default getPermissions;
  