const routes = [
  {
    path: '/',
    redirect: '/index',
    component: () => import('@/views/index/index.vue'),
    children: [
      {
        path: '',
        name: 'Login',
        component: () => import('@/views/login/index.vue')
      },
      {
        path: '/home',
        name: 'home',
        component: () => import('@/views/home/index.vue')
      },
      {
        path: '/test1',
        name: 'test1',
        title: '试验一：甄别试验',
        redirect: '/test1/firstStep',
        children: [
       
          {
            path: 'firstStep',
            name: 't1_first',
            title: '准备',
            component: () => import('@/views/equipment/first_step.vue')
          },
          {
            path: 'secondStep',
            name: 't1_second',
            title: '试验',
            component: () => import('@/views/equipment/second_step_text.vue')
          },
          {
            path: 'thirdStep',
            name: 't3_third',
            title: '结果',
            component: () => import('@/views/equipment/third_step.vue')
          }
        ]
      },
      {
        path: '/experiment',
        name: 'experiment',
        title: '实验',
        redirect: '/experiment/firstStep',
        children: [
          {
            path: 'msgEdit',
            name: 'msgEdit',
            title: '样品编辑',
            component: () => import('@/views/experiment/baseMsgEdit.vue')
          },
          {
            path: 'firstStep',
            name: 'jiya_first',
            title: '挤压准备',
            component: () => import('@/views/experiment/first_step.vue')
          },
          {
            path: 'secondStep',
            name: 'jiya_second',
            title: '试验',
            component: () => import('@/views/experiment/second_step.vue')
          }
        ]
      },
      {
        path: '/report',
        title: '试验数据',
        name: 'report',
        redirect: '/report/table',
        children: [
          {
            path: 'table',
            name: 'table',
            title: '数据报表',
            component: () => import('@/views/report/index.vue')
          },
          {
            path: 'detail',
            name: 'detail',
            title: '数据详情',
            component: () => import('@/views/report/report_detail.vue')
          }
        ]
      },

      {
        path: '/accountManagement',
        name: 'accountManagement',
        component: () => import('@/views/AccountManagement/index.vue')
      },
      {
        path: '/addUser',
        name: 'addUser',
        component: () => import('@/views/addUser/index.vue')
      },
      {
        path: '/safeSetting',
        name: 'safeSetting',
        title: '安全设置',
        component: () => import('@/views/safeSetting/index.vue')
      },
      {
        path: '/debug',
        name: 'debug',
        title: '调试',
        component: () => import('@/views/debug/index.vue')
      },
      {
        path: '/calibration',
        name: 'calibration',
        title: '仪器校准',
        component: () => import('@/views/calibration/index.vue')
      }
    ]
  }
];

export default routes;
