# Conflicts: # src/layout/components/Navbar.vue # src/router/index.ts # src/utils/validate.ts
43 lines
1.1 KiB
TypeScript
43 lines
1.1 KiB
TypeScript
/** When your routing table is too long, you can split it into small modules **/
|
|
|
|
const Layout = () => import('@/layout/index.vue');
|
|
|
|
//侧边栏
|
|
const tableRouter = {
|
|
path: '/table',
|
|
component: Layout,
|
|
redirect: '/table/complex-table',
|
|
name: 'Table',
|
|
meta: {
|
|
title: '个人项目',
|
|
icon: 'table'
|
|
},
|
|
children: [
|
|
{
|
|
path: 'dynamic-table',
|
|
component: () => import('@/views/table/dynamic-table/index.vue'),
|
|
name: 'DynamicTable',
|
|
meta: { title: '我参与的' }
|
|
},
|
|
{
|
|
path: 'drag-table',
|
|
component: () => import('@/views/table/drag-table.vue'),
|
|
name: 'DragTable',
|
|
meta: { title: '我管理的' }
|
|
},
|
|
// {
|
|
// path: 'inline-edit-table',
|
|
// component: () => import('@/views/table/inline-edit-table.vue'),
|
|
// name: 'InlineEditTable',
|
|
// meta: { title: 'Inline Edit' }
|
|
// },
|
|
{
|
|
path: 'complex-table',
|
|
component: () => import('@/views/table/complex-table.vue'),
|
|
name: 'ComplexTable',
|
|
meta: { title: '我负责的' }
|
|
}
|
|
]
|
|
};
|
|
export default tableRouter;
|