import type { RouteRecordRaw } from 'vue-router'
import studentManage_c from './index.vue'

const routes: RouteRecordRaw = {
  path: 'student-mgr',
  children: [
    {
      name: 'studentManage',
      path: '',
      component: studentManage_c,
      meta: { title: '学员管理' },
    },
    {
      name: 'coin-detail',
      path: 'coin-detail',
      component: () => import('./coin-detail/index.vue'),
      meta: { title: '乐贝明细' },
    },
    {
      name: 'coin-detail',
      path: 'coin-detail',
      component: () => import('./coin-detail/index.vue'),
      meta: { title: '乐贝明细' },
    },
    {
      name: 'set-book',
      path: 'set-book',
      component: () => import('./set-book/index.vue'),
      meta: { title: '教材设置' },
    },
    {
      name: 'set-task',
      path: 'set-task',
      component: () => import('./set-task/index.vue'),
      meta: { title: '任务设置' },
    },
    {
      name: 'add-task',
      path: 'add-task',
      component: () => import('./set-task/add-task/index.vue'),
      meta: { title: '添加任务' },
    },
    {
      name: 'task-detail',
      path: 'task-detail',
      component: () => import('./set-task/task-detail/index.vue'),
      meta: { title: '任务明细' },
    },
  ],
}

export default routes
