Blame view

src/router/modules/sites.js 553 Bytes
5cb375940   Adam   auto commit the c...
1
2
3
4
5
6
7
8
9
  import Layout from '@/layout'
  
  const sitesRouter = {
    path: '/sites',
    component: Layout,
    redirect: '/site/page',
    alwaysShow: true, // will always show the root menu
    name: 'Site',
    meta: {
a86b16bba   Adam   auto commit the c...
10
      title: 'sites.sites',
5cb375940   Adam   auto commit the c...
11
12
13
14
      icon: 'people',
      roles: ['admin', 'assistant', 'runner'] // you can set roles in root nav
    },
    children: [{
b58b17e1e   Adam   auto commit the c...
15
      path: 'sitepage',
5cb375940   Adam   auto commit the c...
16
17
18
      component: () => import('@/views/site/list'),
      name: 'SiteList',
      meta: {
a86b16bba   Adam   auto commit the c...
19
        title: 'sites.siteList',
5cb375940   Adam   auto commit the c...
20
21
22
23
24
25
26
        roles: ['admin', 'runner']
  
      }
    }]
  }
  
  export default sitesRouter