import type { RouteRecordRaw } from 'vue-router'
import task_c from './index.vue' // 静态导入组件

const routes: RouteRecordRaw = {
  path: 'task',
  children: [
    {
      name: 'task',
      path: '',
      component: task_c,
      meta: { title: '任务' },
    },
    {
      name: 'user-task-records',
      path: 'user-task-records',
      component: () => import('./user-task-records/index.vue'),
      meta: { title: '任务列表' },
    },
  ],
}

export default routes
