1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
| import { createRouter, createWebHistory } from 'vue-router'
|
| const router = createRouter({
| history: createWebHistory(),
| routes: [
| {
| path: '/',
| redirect: '/mechanism'
| },
| {
| 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')
| }
| ]
| })
|
| export default router
|
|