Blame view

src/router/modules/user.js 960 Bytes
3d3cdb68f   Adam   auto commit the c...
1
2
3
4
5
6
7
  /** When your routing table is too long, you can split it into small modules**/
  
  import Layout from '@/layout'
  
  const chartsRouter = {
    path: '/users',
    component: Layout,
50760eab9   Adam   auto commit the c...
8
9
    redirect: '/users/page',
    alwaysShow: true, // will always show the root menu
3d3cdb68f   Adam   auto commit the c...
10
11
    name: 'Users',
    meta: {
50760eab9   Adam   auto commit the c...
12
13
14
      title: 'users',
      icon: 'peoples',
      roles: ['admin', 'assistant'] // you can set roles in root nav
3d3cdb68f   Adam   auto commit the c...
15
    },
50760eab9   Adam   auto commit the c...
16
17
18
19
20
21
22
    children: [{
      path: 'page',
      component: () => import('@/views/users/list'),
      name: 'UserList',
      meta: {
        title: 'UserList',
        roles: ['admin', 'assistant', 'shoper', 'runner'] // or you can only set roles in sub nav
3d3cdb68f   Adam   auto commit the c...
23
      }
50760eab9   Adam   auto commit the c...
24
25
26
27
28
29
30
31
32
33
    }
      // ,{
      //   path: '/icons',
      //   component: () => import('@/views/icons/index'),
      //   name: 'icons',
      //   meta: {
      //     title: 'icons',
      //     roles: ['admin', 'assistant', 'shoper', 'runner'] // or you can only set roles in sub nav
      //   }
      // }
3d3cdb68f   Adam   auto commit the c...
34
35
36
37
    ]
  }
  
  export default chartsRouter