{"size": 392, "ext": "js", "max_stars_repo_path": "client/src/access.js", "max_stars_repo_name": "haohome/haohome.github.com", "max_stars_repo_stars_event_min_datetime": "2018-02-22T06:25:10.000Z", "max_stars_repo_stars_event_max_datetime": "2018-02-22T06:41:26.000Z", "max_issues_repo_path": "client/src/access.js", "max_issues_repo_name": "haohome/haohome.github.com", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/src/access.js", "max_forks_repo_name": "haohome/haohome.github.com", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 4, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.6315789474, "max_line_length": 56, "alphanum_fraction": 0.5765306122}
/**
 * @see https://umijs.org/zh-CN/plugins/plugin-access
 * */
export default function access(initialState) {
  const { userInfo } = initialState || {};
  if (!userInfo)
    return {
      1001: (route) => true,
      1099: (route) => false,
    };
  let isGet = (route) => {
    return userInfo.func.includes(Number(route.access));
  };
  return {
    1001:  isGet,
    1099: isGet,
  };
}
