From b4698317fb97d89e389f131e8fd9dcf8d7108c77 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Mon, 29 Jul 2024 17:17:21 +0800
Subject: [PATCH] 修改
---
src/router/index.js | 106 ++++++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 92 insertions(+), 14 deletions(-)
diff --git a/src/router/index.js b/src/router/index.js
index 14ddf33..0856c65 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -44,7 +44,7 @@
},
{
path: "/:pathMatch(.*)*",
- component: () => import('@/views/error/404'),
+ component: () => import('@/views/homePage'),
hidden: true
},
{
@@ -53,6 +53,45 @@
hidden: true
},
+ {
+ path: '/chapters',
+ component: Layout,
+ redirect: '/chapters',
+ children: [
+ {
+ path: '/chapters',
+ component: () => import('@/views/onlineEducation/courseManage/courseChapters/index.vue'),
+ name: 'Chapters',
+ meta: { title: '章节',icon: 'form', affix: true }
+ }
+ ]
+ },
+ {
+ path: '/chooseStu',
+ component: Layout,
+ redirect: '/chooseStu',
+ children: [
+ {
+ path: '/chooseStu',
+ component: () => import('@/views/onlineEducation/classHourBatch/components/handleStudent.vue'),
+ name: 'ChooseStu',
+ meta: { title: '批次学员',icon: 'form', affix: true }
+ }
+ ]
+ },
+ {
+ path: '/examStu',
+ component: Layout,
+ redirect: '/examStu',
+ children: [
+ {
+ path: '/examStu',
+ component: () => import('@/views/onlineEducation/groupExams/components/student.vue'),
+ name: 'ExamStu',
+ meta: { title: '考试学员',icon: 'form', affix: true }
+ }
+ ]
+ },
// {
// path: '',
// component: Layout,
@@ -67,32 +106,71 @@
// ]
// },
{
- path: '/course',
+ path: '/newPage',
component: Layout,
- redirect: '/course',
+ redirect: '/newPage',
children: [
{
- path: '/course',
- component: () => import('@/views/onlineEducation/courseManage/index.vue'),
- name: 'course',
- meta: { title: '课程管理',icon: 'form', affix: true }
+ path: '/newPage',
+ component: () => import('@/views/onlineEducation/systemManage/banner/components/newPage.vue'),
+ name: 'NewPage',
}
]
},
{
- path: '/question',
+ path: '/courseManage',
component: Layout,
- redirect: '/question',
+ redirect: '/onlineEducation/courseManage',
+ meta: { title: '课程管理'},
children: [
{
- path: '/question',
- component: () => import('@/views/onlineEducation/questionBankManagement/index.vue'),
- name: 'Question',
- meta: { title: '题库管理',icon: 'form', affix: true }
- }
+ path: 'course',
+ component: () => import('@/views/onlineEducation/courseManage/index.vue'),
+ name: 'course',
+ meta: { title: '课程列表',icon: 'form', affix: true }
+ },
+ {
+ path: 'courseResource',
+ component: () => import('@/views/onlineEducation/courseManage/courseResource/index.vue'),
+ name: 'courseResource',
+ meta: { title: '课程资源',icon: 'form', affix: true }
+ },
]
},
{
+ path: '/questionBankManagement',
+ component: Layout,
+ redirect: '/onlineEducation/questionBankManagement',
+ meta: { title: '题库题目管理'},
+ children: [
+ {
+ path: 'questionBank',
+ component: () => import('@/views/onlineEducation/questionBankManagement/index.vue'),
+ name: 'questionBank',
+ meta: { title: '题库列表',icon: 'form', affix: true }
+ },
+ {
+ path: 'question',
+ component: () => import('@/views/onlineEducation/questionBankManagement/questionManage/index.vue'),
+ name: 'question',
+ meta: { title: '题目管理',icon: 'form', affix: true }
+ },
+ ]
+ },
+ // {
+ // path: '/question',
+ // component: Layout,
+ // redirect: '/question',
+ // children: [
+ // {
+ // path: '/question',
+ // component: () => import('@/views/onlineEducation/questionBankManagement/index.vue'),
+ // name: 'Question',
+ // meta: { title: '题库管理',icon: 'form', affix: true }
+ // }
+ // ]
+ // },
+ {
path: '/class',
component: Layout,
redirect: '/class',
--
Gitblit v1.9.2