QYF-GitLab1
2025-03-03 c2ddf632c8e642813c89e501d402f06c57369a22
src/router/index.ts
@@ -5,18 +5,32 @@
  routes: [
    {
      path: '/',
      redirect: '/mechanism'
      redirect: '/model'
    },
    {
      path: '/mechanism',
      name: 'mechanism',
      component: () => import('../views/model/Mechanism.vue')
      path: '/model',
      name: 'model',
      redirect: '/model/landerModel',
      component: () => import('../views/model/index.vue'),
      children: [
        {
          path: '/model/landerModel',
          name: 'landerModel',
          component: () => import('../views/model/children/landerModel.vue')
        },
        {
          path: '/model/roverModel',
          name: 'roverModel',
          component: () => import('../views/model/children/roverModel.vue')
        },
        {
          path: '/model/leapMachineModel',
          name: 'leapMachineModel',
          component: () => import('../views/model/children/leapMachineModel.vue')
        },
      ]
    },
    {
      path: '/kinematic',
      name: 'kinematic',
      component: () => import('../views/model/Kinematic.vue')
    },
    {
      path: '/simulation-config',
      name: 'simulationConfig',
@@ -28,15 +42,16 @@
      component: () => import('../views/simulation/Result.vue')
    },
    {
      path: '/simulation-test',
      name: 'simulationTest',
      component: () => import('../views/simulation/test.vue')
    },
    {
      path: '/system/user',
      name: 'systemUser',
      component: () => import('../views/system/User.vue')
    },
    {
      path: '/system/permission',
      name: 'systemPermission',
      component: () => import('../views/system/Permission.vue')
    }
  ]
})