Blame view

src/router/modules/prod.js 690 Bytes
50760eab9   Adam   auto commit the c...
1
2
3
4
5
  /** When your routing table is too long, you can split it into small modules**/
  
  import Layout from '@/layout'
  
  const prodRouter = {
b58b17e1e   Adam   auto commit the c...
6
    path: '/prod',
50760eab9   Adam   auto commit the c...
7
8
    component: Layout,
    redirect: '/prod/page',
fedf6da38   BigBoss   menu修改
9
    // alwaysShow: true, // will always show the root menu
50760eab9   Adam   auto commit the c...
10
11
    name: 'Prod',
    meta: {
b58b17e1e   Adam   auto commit the c...
12
      title: 'prods.prod_menu', // 会自动被i18n替换
50760eab9   Adam   auto commit the c...
13
14
15
      icon: 'star',
      roles: ['admin', 'assistant', 'runner', 'shoper'] // you can set roles in root nav
    },
a1b48a444   Adam   auto commit the c...
16
17
18
19
20
21
22
    children: [{
      path: 'list',
      component: () => import('@/views/prod/list'),
      name: 'prodList',
      meta: {
        title: 'prods.prodlist',
        roles: ['admin', 'assistant', 'shoper', 'runner']
50760eab9   Adam   auto commit the c...
23
      }
a1b48a444   Adam   auto commit the c...
24
    }]
50760eab9   Adam   auto commit the c...
25
26
27
  }
  
  export default prodRouter