From 96be59a64cc1d8fcaf1034e787717663c68df4a7 Mon Sep 17 00:00:00 2001 From: 杨磊 <505174330@qq.com> Date: 星期一, 26 五月 2025 10:39:58 +0800 Subject: [PATCH] 2025-5-26提交 --- src/router/index.ts | 122 +++++++++++++++++++++++++++++----------- 1 files changed, 87 insertions(+), 35 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 414b936..ed2ede4 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,43 +1,95 @@ -import { createRouter, createWebHistory } from 'vue-router' +import { createRouter, createWebHistory } from "vue-router"; const router = createRouter({ history: createWebHistory(), routes: [ { - path: '/', - redirect: '/mechanism' + path: "/", + redirect: "/model", }, { - path: '/mechanism', - name: 'mechanism', - component: () => import('../views/model/Mechanism.vue') - }, - { - path: '/kinematic', - name: 'kinematic', - component: () => import('../views/model/Kinematic.vue') - }, - { - path: '/simulation-config', - name: 'simulationConfig', - component: () => import('../views/simulation/Config.vue') - }, - { - path: '/simulation-result', - name: 'simulationResult', - component: () => import('../views/simulation/Result.vue') - }, - { - path: '/system/user', - name: 'systemUser', - component: () => import('../views/system/User.vue') - }, - { - path: '/system/permission', - name: 'systemPermission', - component: () => import('../views/system/Permission.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"), + }, -export default router \ No newline at end of file + { + path: "/model/leapMachineModel", + name: "leapMachineModel", + component: () => + import("../views/model/children/leapMachineModel.vue"), + }, + { + path: "/simulation-config", + name: "simulationConfig", + component: () => + import("../views/simulation/autonomousFunction/index.vue"), + }, + { + path: "/simulation-result", + name: "simulationResult", + component: () => + import("../views/simulation/realTimeSimulation/index.vue"), + }, + { + path: "/simulation", + name: "simulationTest", + component: () => + import("../views/simulation/testSimulation/index.vue"), + }, + { + path: "/simulation-detail", + name: "simulation-detail", + component: () => + import("../views/simulation/testSimulation/detail.vue"), + }, + { + path: "/simulation-testReport", + name: "simulation-testReport", + component: () => + import("../views/simulation/testSimulation/testReport.vue"), + }, + { + + path: "/systemManage", + name: "systemUse", + component: () => import("../views/system/index.vue"), + redirect: "/systemManage/userManage", + children: [ + { + path: "/systemManage/userManage", + name: "userManage", + component: () => + import("../views/system/userManage.vue"), + }, + { + path: "/systemManage/roleManage", + name: "roleManage", + component: () => + import("../views/system/roleManage.vue"), + }, + ], + }, + ], + }, + + { + path: "/login", + name: "login", + component: () => import("../views/login/index.vue"), + }, + ], +}); + +export default router; -- Gitblit v1.9.1