import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const routes: AppRouteRecordRaw[] = [
  {
    path: '/base',
    name: 'base',
    component: DEFAULT_LAYOUT,
    meta: {
      requiresAuth: true,
    },
    children: [
      {
        path: 'track-export',
        name: 'TrackExport',
        component: () => import('@/views/base/track-export/index.vue'),
        meta: {
          title: '轨迹图导出',
          requiresAuth: true,
        },
      },
    ],
  },
  {
    path: '/track-task-export',
    name: 'TrackTaskExport',
    component: () => import('@/views/base/track-export/trackTaskExport.vue'),
    meta: {
      title: '导出详情',
      requiresAuth: false,
    },
  },
];

export default routes;
