From 79427dd90676020e6e0b204af731b7bf1a4ef462 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: 星期一, 17 十一月 2025 12:15:16 +0800
Subject: [PATCH] 修改新增
---
src/router/index.js | 135 ++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 128 insertions(+), 7 deletions(-)
diff --git a/src/router/index.js b/src/router/index.js
index 54821e2..8555c62 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -27,6 +27,19 @@
// 公共路由
export const constantRoutes = [
{
+ path: '/',
+ component: Layout,
+ redirect: '/menuIndex',
+ children: [
+ {
+ path: 'menuIndex',
+ component: () => import('@/views/work/menuIndex/index'),
+ name: 'MenuIndex',
+ meta: { title: '首页', icon: 'build', affix: true }
+ }
+ ]
+ },
+ {
path: '/redirect',
component: Layout,
hidden: true,
@@ -53,21 +66,129 @@
hidden: true
},
{
- path: '/fillForm',
- component: () => import('@/views/safetyReview/expertManage/fillForm/index.vue'),
- hidden: true
- },
- {
path: '/certPdf',
component: () => import('@/views/certificatePdf'),
hidden: true
},
{
- path: '/checkProgress',
- component: () => import('@/views/safetyReview/expertManage/checkProgress/index.vue'),
+ path: '/menuPage',
+ component: () => import('@/views/menuPage'),
hidden: true
},
{
+ path: '/courseManage',
+ component: Layout,
+ redirect: '/onlineEducation/courseManage',
+ children: [
+ {
+ path: 'course',
+ component: () => import('@/views/work/onlineEducation/courseManage/index.vue'),
+ name: 'course',
+ }
+ ]
+ },
+ {
+ path: '/class',
+ component: Layout,
+ redirect: '/class',
+ children: [
+ {
+ path: '/class',
+ component: () => import('@/views/work/onlineEducation/classHourBatch/index.vue'),
+ name: 'class',
+ }
+ ]
+ },
+ {
+ path: '/group',
+ component: Layout,
+ redirect: '/group',
+ children: [
+ {
+ path: '/group',
+ component: () => import('@/views/work/onlineEducation/groupExams/index.vue'),
+ name: 'group',
+ }
+ ]
+ },
+ {
+ path: '/offline',
+ component: Layout,
+ redirect: '/offline',
+ children: [
+ {
+ path: '/offline',
+ component: () => import('@/views/work/onlineEducation/offlineEducation/index.vue'),
+ name: 'offline',
+ }
+ ]
+ },
+ {
+ path: '/chapters',
+ component: Layout,
+ redirect: '/chapters',
+ children: [
+ {
+ path: '/chapters',
+ component: () => import('@/views/work/onlineEducation/courseManage/courseChapters/index.vue'),
+ name: 'Chapters',
+
+ }
+ ]
+ },
+ {
+ path: '/chooseStu',
+ component: Layout,
+ redirect: '/chooseStu',
+ children: [
+ {
+ path: '/chooseStu',
+ component: () => import('@/views/work/onlineEducation/classHourBatch/components/handleStudent.vue'),
+ name: 'ChooseStu',
+
+ }
+ ]
+ },
+ {
+ path: '/examStu',
+ component: Layout,
+ redirect: '/examStu',
+ children: [
+ {
+ path: '/examStu',
+ component: () => import('@/views/work/onlineEducation/groupExams/components/student.vue'),
+ name: 'ExamStu',
+
+ }
+ ]
+ },
+ {
+ path: '/correctExam',
+ component: Layout,
+ redirect: '/correctExam',
+ children: [
+ {
+ path: '/correctExam',
+ component: () => import('@/views/work/onlineEducation/groupExams/components/correctExam.vue'),
+ name: 'CorrectExam',
+
+ }
+ ]
+ },
+
+ {
+ path: '/newPage',
+ component: Layout,
+ redirect: '/newPage',
+ children: [
+ {
+ path: '/newPage',
+ component: () => import('@/views/work/onlineEducation/systemManage/banner/components/newPage.vue'),
+ name: 'NewPage',
+ }
+ ]
+ },
+ {
path: '',
component: Layout,
redirect: '/index',
--
Gitblit v1.9.2