sites.js 541 Bytes
import Layout from '@/layout'

const sitesRouter = {
  path: '/sites',
  component: Layout,
  redirect: '/site/page',
  alwaysShow: true, // will always show the root menu
  name: 'Site',
  meta: {
    title: 'sites',
    icon: 'people',
    roles: ['admin', 'assistant', 'runner'] // you can set roles in root nav
  },
  children: [{
    path: 'page',
    component: () => import('@/views/site/list'),
    name: 'SiteList',
    meta: {
      title: '站点列表',
      roles: ['admin', 'runner']

    }
  }]
}

export default sitesRouter