Blame view

src/router/modules/system.js 1.31 KB
50760eab9   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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
  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',
      roles: ['admin', 'assistant', 'runner'] // you can set roles in root nav
    },
    children: [{
      path: 'page',
      component: () => import('@/views/example/list'),
      name: 'SystemList',
      meta: {
        title: 'systems.sites',
        roles: ['admin', 'assistant', 'runner'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'page',
      component: () => import('@/views/example/list'),
      name: 'SystemList',
      meta: {
        title: 'systems.money',
        roles: ['admin', 'assistant', 'runner'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'page',
      component: () => import('@/views/example/list'),
      name: 'SystemList',
      meta: {
        title: 'systems.industry',
        roles: ['admin', 'assistant', 'runner'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'page',
      component: () => import('@/views/example/list'),
      name: 'SystemList',
      meta: {
        title: 'systems.template',
        roles: ['admin', 'assistant', 'runner'] // or you can only set roles in sub nav
      }
    }
  
    ]
  }
  
  export default systemRouter