|
|
@@ -10,7 +10,11 @@ import Layout from '@/layout' |
|
|
|
import componentsRouter from './modules/components' |
|
|
|
import chartsRouter from './modules/charts' |
|
|
|
// 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' |
|
|
|
|
|
|
|
/** |
|
|
@@ -71,10 +75,7 @@ export const constantRoutes = [ |
|
|
|
component: () => import('@/views/error-page/401'), |
|
|
|
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 |
|
|
|
*/ |
|
|
|
export const asyncRoutes = [ |
|
|
|
homeIndexRouter, |
|
|
|
memberManagement, |
|
|
|
booksManagement, |
|
|
|
sortManagement, |
|
|
|
// 404 page must be placed at the end !!! |
|
|
|
{ path: '*', redirect: '/404', hidden: true } |
|
|
|
] |
|
|
|