Blame view
src/router/modules/prod.js
1.06 KB
50760eab9 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 |
/** When your routing table is too long, you can split it into small modules**/ import Layout from '@/layout' const prodRouter = { path: '/prods', component: Layout, redirect: '/prod/page', alwaysShow: true, // will always show the root menu name: 'Prod', meta: { title: 'prods', // 会自动被i18n替换 icon: 'star', roles: ['admin', 'assistant', 'runner', 'shoper'] // you can set roles in root nav }, children: [{ path: 'page', component: () => import('@/views/permission/page'), name: 'ProdList', meta: { title: 'ProdList', |
f3ec4dd95 auto commit the c... |
22 |
roles: ['admin', 'assistant', 'runner', 'shoper'] |
50760eab9 auto commit the c... |
23 24 25 26 27 28 29 30 31 |
} }, { path: 'defined', component: () => import('@/views/permission/directive'), name: 'ProdDefiend', meta: { title: 'ProdDefiend', roles: ['admin', 'assistant', 'shoper'] |
f3ec4dd95 auto commit the c... |
32 33 34 35 36 37 38 39 |
} }, { path: 'defined2', component: () => import('@/views/prod/list'), name: 'prod...', meta: { title: '产品列表', roles: ['admin', 'assistant', 'shoper'] |
50760eab9 auto commit the c... |
40 41 42 43 44 45 |
} } ] } export default prodRouter |