@@ -10,7 +10,11 @@ import Layout from '@/layout' | |||||
import componentsRouter from './modules/components' | import componentsRouter from './modules/components' | ||||
import chartsRouter from './modules/charts' | import chartsRouter from './modules/charts' | ||||
// import nestedRouter from './modules/nested' | // import nestedRouter from './modules/nested' | ||||
import homeIndexRouter from './modules/home-index' | |||||
import memberManagement from './modules/member-management' | |||||
import booksManagement from './modules/books-management' | |||||
import sortManagement from './modules/sort-management' | |||||
// import systemManagementRouter from './modules/system-management' | // import systemManagementRouter from './modules/system-management' | ||||
/** | /** | ||||
@@ -71,10 +75,7 @@ export const constantRoutes = [ | |||||
component: () => import('@/views/error-page/401'), | component: () => import('@/views/error-page/401'), | ||||
hidden: true | hidden: true | ||||
}, | }, | ||||
{ | |||||
path: '/11', | |||||
redirect: '/index' | |||||
} | |||||
] | ] | ||||
/** | /** | ||||
@@ -82,7 +83,9 @@ export const constantRoutes = [ | |||||
* the routes that need to be dynamically loaded based on user roles | * the routes that need to be dynamically loaded based on user roles | ||||
*/ | */ | ||||
export const asyncRoutes = [ | export const asyncRoutes = [ | ||||
homeIndexRouter, | |||||
memberManagement, | |||||
booksManagement, | |||||
sortManagement, | |||||
// 404 page must be placed at the end !!! | // 404 page must be placed at the end !!! | ||||
{ path: '*', redirect: '/404', hidden: true } | { path: '*', redirect: '/404', hidden: true } | ||||
] | ] | ||||
@@ -0,0 +1,29 @@ | |||||
/** When your routing table is too long, you can split it into small modules **/ | |||||
import Layout from '@/layout' | |||||
const booksManagement = { | |||||
path: '/', | |||||
component: Layout, | |||||
redirect: '/books', | |||||
name: 'booksManagement', | |||||
meta: { | |||||
title: '书籍管理', | |||||
icon: 'el-icon-notebook-2' | |||||
}, | |||||
children: [ | |||||
{ | |||||
path: 'article', | |||||
component: () => import('@/views/books-management/article'), | |||||
name: 'articleManagement', | |||||
meta: { title: '文章管理' } | |||||
}, | |||||
{ | |||||
path: 'ShuYuan', | |||||
component: () => import('@/views/books-management/ShuYuan'), | |||||
name: 'memberManagement', | |||||
meta: { title: '书源管理' } | |||||
} | |||||
] | |||||
} | |||||
export default booksManagement |
@@ -1,23 +0,0 @@ | |||||
/** When your routing table is too long, you can split it into small modules **/ | |||||
import Layout from '@/layout' | |||||
const homeIndexRouter = { | |||||
path: '/', | |||||
component: Layout, | |||||
redirect: '/index', | |||||
name: 'HomeIndex', | |||||
meta: { | |||||
title: '首页', | |||||
icon: 'menu-workbench' | |||||
}, | |||||
children: [ | |||||
{ | |||||
path: 'index', | |||||
component: () => import('@/views/home-index/index'), | |||||
name: 'HomeIndex2', | |||||
meta: { title: '首页' } | |||||
} | |||||
] | |||||
} | |||||
export default homeIndexRouter |
@@ -0,0 +1,23 @@ | |||||
/** When your routing table is too long, you can split it into small modules **/ | |||||
import Layout from '@/layout' | |||||
const memberManagement = { | |||||
path: '/', | |||||
component: Layout, | |||||
redirect: '/member', | |||||
name: 'memberManagement', | |||||
meta: { | |||||
title: '会员管理', | |||||
icon: 'el-icon-folder' | |||||
}, | |||||
children: [ | |||||
{ | |||||
path: 'member', | |||||
component: () => import('@/views/member-management/index'), | |||||
name: 'memberManagement', | |||||
meta: { title: '会员管理' } | |||||
} | |||||
] | |||||
} | |||||
export default memberManagement |
@@ -0,0 +1,23 @@ | |||||
/** When your routing table is too long, you can split it into small modules **/ | |||||
import Layout from '@/layout' | |||||
const sortManagement = { | |||||
path: '/', | |||||
component: Layout, | |||||
redirect: '/sort', | |||||
name: 'memberManagement', | |||||
meta: { | |||||
title: '分类管理', | |||||
icon: 'component' | |||||
}, | |||||
children: [ | |||||
{ | |||||
path: 'sort', | |||||
component: () => import('@/views/sort-management/index'), | |||||
name: 'sortManagement', | |||||
meta: { title: '分类管理' } | |||||
} | |||||
] | |||||
} | |||||
export default sortManagement |
@@ -0,0 +1,14 @@ | |||||
<template> | |||||
<el-container> | |||||
<el-main>书源管理</el-main> | |||||
</el-container> | |||||
</template> | |||||
<script> | |||||
export default { | |||||
} | |||||
</script> | |||||
<style lang="scss" scoped> | |||||
</style> |
@@ -0,0 +1,14 @@ | |||||
<template> | |||||
<el-container> | |||||
<el-main>文章管理</el-main> | |||||
</el-container> | |||||
</template> | |||||
<script> | |||||
export default { | |||||
} | |||||
</script> | |||||
<style lang="scss" scoped> | |||||
</style> |
@@ -0,0 +1,14 @@ | |||||
<template> | |||||
<el-container> | |||||
<el-main>分类管理</el-main> | |||||
</el-container> | |||||
</template> | |||||
<script> | |||||
export default { | |||||
} | |||||
</script> | |||||
<style lang="scss" scoped> | |||||
</style> |