import Layout from '@/layout'

const backstageRouter = {
  path: '/backstage',
  component: Layout,
  redirect: 'noRedirect',
  name: 'backstageSet',
  meta: {
    title: '后台管理',
    icon: 'backstage'
  },
  children: [
    {
      path: 'account',
      component: () => import('@/pages/backstage/account'),
      name: 'backstage_account',
      meta: { title: '账号管理', noCache: true }
    },
    {
      path: 'role',
      component: () => import('@/pages/backstage/role'),
      name: 'backstage_role',
      meta: { title: '角色管理', noCache: true }
    },
    {
      path: 'log',
      component: () => import('@/pages/backstage/log'),
      name: 'backstage_log',
      meta: { title: '操作日志', noCache: true }
    }
  ]
}

export default backstageRouter
