ZhangXianQiang
2024-05-17 9f5a532c9213a34c7da9271cffd0ec2eb90461b4
src/router.js
@@ -26,7 +26,7 @@
  {
    path: '/',
    component: Layout,
    redirect: '/dashboard',
    redirect: '/login',
    children: [
      {
        path: 'dashboard',
@@ -100,14 +100,19 @@
      title: '在线学习',
      icon: 'exam'
    },
    alwaysShow: true,
    children: [
      {
        path: 'video/type',
        component: () => import('@/views/onlineStudy/video/type'),
        name: 'VideoType',
        meta: {
          title: '视频分类', noCache: true
        }
        path: 'type',
        component: () => import('@/views/onlineStudy/type'),
        name: 'Type',
        meta: { title: '学习类型', noCache: true }
      },
      {
        path: 'file',
        component: () => import('@/views/onlineStudy/file'),
        name: 'File',
        meta: { title: '学习文件', noCache: true }
      }
    ]
  },
@@ -447,7 +452,7 @@
  {
    path: '/',
    component: Layout,
    redirect: '/dashboard',
    redirect: '/login',
    children: [
      {
        path: 'dashboard',
@@ -458,6 +463,24 @@
    ]
  },
  {
    path: '/user',
    component: Layout,
    name: 'UserPage',
    meta: {
      title: '用户管理',
      icon: 'users'
    },
    alwaysShow: true,
    children: [
      {
        path: 'student/list',
        component: () => import('@/views/user/student/list'),
        name: 'UserStudentPageList',
        meta: { title: '学生列表', noCache: true }
      },
    ]
  },
  {
    path: '/exam',
    component: Layout,
    name: 'ExamPage',
@@ -465,7 +488,21 @@
      title: '卷题管理',
      icon: 'exam'
    },
    alwaysShow: true,
    children: [
      {
        path: 'paper/list',
        component: () => import('@/views/exam/paper/list'),
        name: 'ExamPaperPageList',
        meta: { title: '试卷列表', noCache: true }
      },
      {
        path: 'paper/edit',
        component: () => import('@/views/exam/paper/edit'),
        name: 'ExamPaperEdit',
        meta: { title: '试卷编辑', noCache: true, activeMenu: '/exam/paper/list' },
        hidden: true
      },
      {
        path: 'personalRandomTemplate/list',
        component: () => import('@/views/exam/personalRandomTemplate/list'),
@@ -510,7 +547,13 @@
        name: 'AnswerPageList',
        meta: { title: '成绩统计详情', noCache: true, activeMenu: '/exam/gradeDetails/list' },
        hidden: true
      }
      },
      {
        path: 'sheetStatistics',
        component: () => import('@/views/answer/sheetStatistics.vue'),
        name: 'AnswerPageList',
        meta: { title: '答卷统计', noCache: true }
      },
    ]
  },
  {