37 lines
984 B
TypeScript
37 lines
984 B
TypeScript
/** When your routing table is too long, you can split it into small modules**/
|
|
|
|
import Layout from '@/layout/index.vue'
|
|
|
|
const systemRouter = [{
|
|
path: '/system',
|
|
component: Layout,
|
|
redirect: '/system/page',
|
|
name: 'system',
|
|
meta: {
|
|
title: '系统管理',
|
|
icon: 'Setting',
|
|
},
|
|
children: [
|
|
{
|
|
path: 'user',
|
|
component: () => import('@/views/system/user/index.vue'),
|
|
name: 'user',
|
|
meta: { title: '用户管理' , icon: 'MenuIcon'}
|
|
},
|
|
{
|
|
path: 'role',
|
|
component: () => import('@/views/system/role/index.vue'),
|
|
name: 'role',
|
|
meta: { title: '角色管理', icon: 'MenuIcon' }
|
|
},
|
|
{
|
|
path: 'menu',
|
|
component: () => import('@/views/system/menu/index.vue'),
|
|
name: 'menu',
|
|
meta: { title: '菜单管理', icon: 'MenuIcon'}
|
|
},
|
|
]
|
|
}]
|
|
|
|
export default systemRouter
|