Blame view

src/router/modules/sites.js 541 Bytes
5cb375940   Adam   auto commit the c...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  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