{"size": 939, "ext": "js", "max_stars_repo_path": "src/router/index.js", "max_stars_repo_name": "abingoal/lion-admin", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/router/index.js", "max_issues_repo_name": "abingoal/lion-admin", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/router/index.js", "max_forks_repo_name": "abingoal/lion-admin", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.3888888889, "max_line_length": 46, "alphanum_fraction": 0.571884984}
import Login from '@/components/Login'
import Main from '@/components/Main'
import Dashboard from '@/components/Dashboard'
import NotFound from '@/components/404'
import userRouter from './user'
import systemRouter from './system'
import chartsRouter from './charts'

let commonRouter = [
  {
    path: '/',
    redirect: { path: '/dashboard' },
    hidden: true
  },
  {
    path: '/',
    name: '首页',
    component: Main,
    rootNode: true,
    children: [
      {
        path: '/dashboard',
        name: '控制面板',
        component: Dashboard,
        iconClass: 'fa fa-dashboard'
      }
    ]
  },
  {
    path: '/login',
    name: '登录',
    hidden: true,
    component: Login
  },
  {
    path: '/404',
    component: NotFound,
    hidden: true
  },
  {
    path: '*',
    hidden: true,
    redirect: { path: '/404' }
  }
]

let routes = [
  userRouter,
  chartsRouter,
  systemRouter
]

export default [...commonRouter, ...routes]
