/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/login',
    component: () => import('@/views/login/index'),
    meta: {
      title: '登录',
      keepAlive: false
    }
  },
  {
    path: '/course',
    component: () => import('@/views/course/index'),
    meta: {
      title: '课程',
      keepAlive: false
    }
  },
  {
    path: '/',
    component: () => import('@/views/layouts'),
    meta: { title: '课程中心', keepAlive: false },
    children: [
      {
        path: 'home',
        name: 'home',
        component: () => import('@/views/home/index'),
        meta: { title: '课程中心', keepAlive: false }
      },
      {
        path: 'test',
        name: 'Test',
        component: () => import('@/views/test/index'),
        meta: { title: '评测中心', keepAlive: false }
      },
      {
        path: 'eva',
        name: 'eva',
        component: () => import('@/views/eva/index'),
        meta: { title: '学生评价', keepAlive: false }
      }
    ]
  },
  {
    path: '/courseDetail',
    component: () => import('@/views/courseDetail/index'),
    meta: {
      title: '课程详情',
      keepAlive: false
    }
  },
  {
    path: '/testDetail',
    component: () => import('@/views/testDetail/index'),
    meta: {
      title: '填写问卷',
      keepAlive: false
    }
  },
  {
    path: '/preview',
    component: () => import('@/views/testDetail/preview'),
    meta: {
      title: '修改问卷',
      keepAlive: false
    }
  },
  {
    path: '/check',
    component: () => import('@/views/testDetail/check'),
    meta: {
      title: '查看问卷',
      keepAlive: false
    }
  },
  {
    path: '/cocoai',
    component: () => import('@/views/aigpt/index'),
    meta: {
      title: 'CocoAI',
      keepAlive: false
    }
  },

  {
    path: '/course',
    component: () => import('@/views/course/index'),
    meta: {
      title: '课程',
      keepAlive: false
    }
  },
  {
    path: '/',
    component: () => import('@/views/layouts'),
    meta: { title: '课程中心', keepAlive: false },
    children: [
      {
        path: 'home',
        name: 'home',
        component: () => import('@/views/home/index'),
        meta: { title: '课程中心', keepAlive: false }
      },
      {
        path: 'test',
        name: 'Test',
        component: () => import('@/views/test/index'),
        meta: { title: '评测中心', keepAlive: false }
      },
      {
        path: 'eva',
        name: 'eva',
        component: () => import('@/views/eva/index'),
        meta: { title: '学生评价', keepAlive: false }
      }
    ]
  },
  {
    path: '/courseDetail',
    component: () => import('@/views/courseDetail/index'),
    meta: {
      title: '课程详情',
      keepAlive: false
    }
  },
  {
    path: '/studentDetail',
    component: () => import('@/views/eva/studentDetail'),
    meta: {
      title: '学生记录',
      keepAlive: false
    }
  },
  // {
  //   path: '/searchstuDetail',
  //   component: () => import('@/views/eva/searchstuDetail'),
  //   meta: {
  //     title: '学生记录2',
  //     keepAlive: false
  //   }
  // },
  {
    path: '/studentEvaluate',
    component: () => import('@/views/eva/studentEvaluate'),
    meta: {
      title: '学生评价',
      keepAlive: false
    }
  },
  {
    path: '/echarts',
    component: () => import('@/views/eva/echarts'),
    meta: {
      title: '学生评价',
      keepAlive: false
    }
  },
  // {
  //   path: '/searchStudentEva',
  //   component: () => import('@/views/eva/searchStudentEva'),
  //   meta: {
  //     title: '学生评价',
  //     keepAlive: false
  //   }
  // },
  {
    path: '/testDetail',
    component: () => import('@/views/testDetail/index'),
    meta: {
      title: '填写问卷',
      keepAlive: false
    }
  },
  {
    path: '/cocoai',
    component: () => import('@/views/aigpt/index'),
    meta: {
      title: 'CocoAI',
      keepAlive: false
    }
  }
]
