Blame view

src/router/modules/system.js 1.29 KB
50760eab9   Adam   auto commit the c...
1
2
3
4
5
6
7
8
9
10
11
  import Layout from '@/layout'
  
  const systemRouter = {
    path: '/system',
    component: Layout,
    redirect: '/system/page',
    alwaysShow: true, // will always show the root menu
    name: 'System',
    meta: {
      title: 'systems.systems',
      icon: 'component',
96898eae4   Adam   auto commit the c...
12
      roles: ['admin', 'assistant'] // you can set roles in root nav
50760eab9   Adam   auto commit the c...
13
14
    },
    children: [{
b58b17e1e   Adam   auto commit the c...
15
      path: 'systempage2',
50760eab9   Adam   auto commit the c...
16
      component: () => import('@/views/example/list'),
b58b17e1e   Adam   auto commit the c...
17
      name: 'SystemList1',
50760eab9   Adam   auto commit the c...
18
19
      meta: {
        title: 'systems.sites',
96898eae4   Adam   auto commit the c...
20
        roles: ['admin', 'assistant'] // or you can only set roles in sub nav
50760eab9   Adam   auto commit the c...
21
22
23
      }
    },
    {
b58b17e1e   Adam   auto commit the c...
24
      path: 'sytempage2',
50760eab9   Adam   auto commit the c...
25
      component: () => import('@/views/example/list'),
b58b17e1e   Adam   auto commit the c...
26
      name: 'SystemList2',
50760eab9   Adam   auto commit the c...
27
28
      meta: {
        title: 'systems.money',
96898eae4   Adam   auto commit the c...
29
        roles: ['admin', 'assistant'] // or you can only set roles in sub nav
50760eab9   Adam   auto commit the c...
30
31
32
      }
    },
    {
b58b17e1e   Adam   auto commit the c...
33
      path: 'systempage3',
50760eab9   Adam   auto commit the c...
34
      component: () => import('@/views/example/list'),
b58b17e1e   Adam   auto commit the c...
35
      name: 'SystemList3',
50760eab9   Adam   auto commit the c...
36
37
      meta: {
        title: 'systems.industry',
96898eae4   Adam   auto commit the c...
38
        roles: ['admin', 'assistant'] // or you can only set roles in sub nav
50760eab9   Adam   auto commit the c...
39
40
41
      }
    },
    {
b58b17e1e   Adam   auto commit the c...
42
      path: 'systempage4',
50760eab9   Adam   auto commit the c...
43
      component: () => import('@/views/example/list'),
b58b17e1e   Adam   auto commit the c...
44
      name: 'SystemList4',
50760eab9   Adam   auto commit the c...
45
46
      meta: {
        title: 'systems.template',
96898eae4   Adam   auto commit the c...
47
        roles: ['admin', 'assistant'] // or you can only set roles in sub nav
50760eab9   Adam   auto commit the c...
48
49
50
51
52
53
54
      }
    }
  
    ]
  }
  
  export default systemRouter