Blame view

src/router/modules/order.js 699 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
27
  /** When your routing table is too long, you can split it into small modules**/
  
  import Layout from '@/layout'
  
  const orderRouter = {
    path: '/orders',
    component: Layout,
    redirect: '/order/page',
    alwaysShow: true, // will always show the root menu
    name: 'Order',
    meta: {
      title: 'orders',
      icon: 'shopping',
      roles: ['admin', 'assistant', 'runner', 'shoper'] // you can set roles in root nav
    },
    children: [{
      path: 'page',
      component: () => import('@/views/order/list'),
      name: 'OrderList',
      meta: {
        title: 'OrderList',
        roles: ['admin', 'assistant', 'runner', 'shoper'] // or you can only set roles in sub nav
      }
    }]
  }
  
  export default orderRouter