diff --git a/src/router/index.js b/src/router/index.js
index 0abc253..4018fef 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -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 }
]
diff --git a/src/router/modules/books-management.js b/src/router/modules/books-management.js
new file mode 100644
index 0000000..8d79e26
--- /dev/null
+++ b/src/router/modules/books-management.js
@@ -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
diff --git a/src/router/modules/home-index.js b/src/router/modules/home-index.js
deleted file mode 100644
index 55aea0b..0000000
--- a/src/router/modules/home-index.js
+++ /dev/null
@@ -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
diff --git a/src/router/modules/member-management.js b/src/router/modules/member-management.js
new file mode 100644
index 0000000..3b3eaf4
--- /dev/null
+++ b/src/router/modules/member-management.js
@@ -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
diff --git a/src/router/modules/sort-management.js b/src/router/modules/sort-management.js
new file mode 100644
index 0000000..489a277
--- /dev/null
+++ b/src/router/modules/sort-management.js
@@ -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
diff --git a/src/views/books-management/ShuYuan.vue b/src/views/books-management/ShuYuan.vue
new file mode 100644
index 0000000..5c43d1a
--- /dev/null
+++ b/src/views/books-management/ShuYuan.vue
@@ -0,0 +1,14 @@
+
+
+ 书源管理
+
+
+
+
+
+
diff --git a/src/views/books-management/article.vue b/src/views/books-management/article.vue
new file mode 100644
index 0000000..7973c30
--- /dev/null
+++ b/src/views/books-management/article.vue
@@ -0,0 +1,14 @@
+
+
+ 文章管理
+
+
+
+
+
+
diff --git a/src/views/home-index/index.vue b/src/views/member-management/index.vue
similarity index 100%
rename from src/views/home-index/index.vue
rename to src/views/member-management/index.vue
diff --git a/src/views/sort-management/index.vue b/src/views/sort-management/index.vue
new file mode 100644
index 0000000..ad63dcd
--- /dev/null
+++ b/src/views/sort-management/index.vue
@@ -0,0 +1,14 @@
+
+
+ 分类管理
+
+
+
+
+
+