export const staticRouter = [

  {
    name: 'DataManage',
    path: '/data-manage',
    meta: {
      icon: 'chat',
      title: '数据管理',
      hidden: false,
    },
    component: 'DataManage',
  },
  {
    name: 'ModelTraining',
    path: '/model-training',
    redirect: '/model-training/index',
    meta: {
      icon: 'sort',
      title: '模型调优',
      hidden: false,
    },
    component: 'ViewLayout',
    children: [
      {
        name: 'ModelTrainingIndex',
        path: 'index',
        hidden: false,
        meta: {
          icon: 'sort',
          title: '模型调优',
          hidden: true,
        },
        component: 'ModelTraining',
      },
      {
        name: 'ModelTrainingDetail',
        path: 'detail',
        hidden: false,
        meta: {
          icon: 'sort',
          title: '模型调优',
          hidden: true,
        },
        component: 'ModelTrainingDetail',
      }
    ]
  },
  {
    name: 'ModelReasoning',
    path: '/model-reasoning',
    meta: {
      icon: 'data',
      title: '模型推理',
      hidden: false,
    },
    component: 'ModelReasoning',
  },
  {
    name: 'ModelManage',
    path: '/model-manage',
    meta: {
      icon: 'data',
      title: '模型管理',
      hidden: false,
    },
    component: 'ModelManage',
  },
  {
    path: '',
    meta: {
      hidden: true,
    },
    redirect: '/data-manage'
  },
]

export const exceptionRouter = [
  {
    path: '/404',
    name: '404',
    component: 'NotFound',
    meta: {
      icon: '',
      title: '',
      hidden: true,
    },
  },
  {
    path: '/test',
    name: 'test',
    component: 'Test',
    meta: {
      icon: '',
      title: '',
      hidden: true,
    },
  },
  {
    path: '/:pathMatch(.*)',
    redirect: '/404',
    hidden: true,
    meta: {
      icon: '',
      title: '',
      hidden: true,
    },
  }
]

