Blame view
src/router/modules/user.js
713 Bytes
3d3cdb68f 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 auto commit the c... |
8 |
redirect: '/users/page', |
fedf6da38 menu修改 |
9 |
// alwaysShow: true, // will always show the root menu |
3d3cdb68f auto commit the c... |
10 11 |
name: 'Users', meta: { |
a6e433928 auto commit the c... |
12 |
title: 'users.people', |
50760eab9 auto commit the c... |
13 |
icon: 'peoples', |
96898eae4 auto commit the c... |
14 |
roles: ['admin', 'assistant'] // you can set roles in root nav |
3d3cdb68f auto commit the c... |
15 |
}, |
50760eab9 auto commit the c... |
16 |
children: [{ |
b858224eb layout修改 |
17 |
path: '用户管理', |
50760eab9 auto commit the c... |
18 |
component: () => import('@/views/users/list'), |
b858224eb layout修改 |
19 |
name: '用户管理', |
a6e433928 auto commit the c... |
20 21 22 |
query: { test: 'ssssss' }, |
50760eab9 auto commit the c... |
23 |
meta: { |
b858224eb layout修改 |
24 |
title: '用户管理', |
a6e433928 auto commit the c... |
25 26 |
roles: ['admin'] // or you can only set roles in sub nav } |
50760eab9 auto commit the c... |
27 |
} |
3d3cdb68f auto commit the c... |
28 29 30 31 |
] } export default chartsRouter |