Blame view
src/router/modules/system.js
1.26 KB
50760eab9 auto commit the c... |
1 2 3 4 5 6 7 8 9 10 11 |
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', |
96898eae4 auto commit the c... |
12 |
roles: ['admin', 'assistant'] // you can set roles in root nav |
50760eab9 auto commit the c... |
13 14 15 16 17 18 19 |
}, children: [{ path: 'page', component: () => import('@/views/example/list'), name: 'SystemList', meta: { title: 'systems.sites', |
96898eae4 auto commit the c... |
20 |
roles: ['admin', 'assistant'] // or you can only set roles in sub nav |
50760eab9 auto commit the c... |
21 22 23 24 25 26 27 28 |
} }, { path: 'page', component: () => import('@/views/example/list'), name: 'SystemList', meta: { title: 'systems.money', |
96898eae4 auto commit the c... |
29 |
roles: ['admin', 'assistant'] // or you can only set roles in sub nav |
50760eab9 auto commit the c... |
30 31 32 33 34 35 36 37 |
} }, { path: 'page', component: () => import('@/views/example/list'), name: 'SystemList', meta: { title: 'systems.industry', |
96898eae4 auto commit the c... |
38 |
roles: ['admin', 'assistant'] // or you can only set roles in sub nav |
50760eab9 auto commit the c... |
39 40 41 42 43 44 45 46 |
} }, { path: 'page', component: () => import('@/views/example/list'), name: 'SystemList', meta: { title: 'systems.template', |
96898eae4 auto commit the c... |
47 |
roles: ['admin', 'assistant'] // or you can only set roles in sub nav |
50760eab9 auto commit the c... |
48 49 50 51 52 53 54 |
} } ] } export default systemRouter |