-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.ts
More file actions
62 lines (59 loc) · 1.57 KB
/
index.ts
File metadata and controls
62 lines (59 loc) · 1.57 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';
import Home from '../views/Home.vue';
import TutorialIndex from '../views/tutorial/index.vue';
import TutorialHello from '../views/tutorial/Hello.vue';
import TutorialDismantling from '../views/tutorial/Dismantling.vue';
import TutorialDismantling2 from '../views/tutorial/Dismantling2.vue';
import TutorialDimension from '../views/tutorial/Dimension.vue';
import TutorialCalcArea from '../views/tutorial/CalcArea.vue';
import TutorialCalcAngle from '../views/tutorial/CalcAngle.vue';
const routes: Array<RouteRecordRaw> = [
{
path: '/',
name: 'Home',
component: Home
},
{
path: '/tutorial',
name: 'Tutoria',
component: TutorialIndex,
redirect: '/tutorial/hello',
children: [
{
path: 'hello',
name: '正方体',
component: TutorialHello
},
{
path: 'dismantling',
name: '固定模型拆分效果',
component: TutorialDismantling
},
{
path: 'dismantling2',
name: '动态模型拆分效果',
component: TutorialDismantling2
},
{
path: 'dimension',
name: '展示模型尺寸',
component: TutorialDimension
},
{
path: 'calcarea',
name: '面积测量',
component: TutorialCalcArea
},
{
path: 'calcangle',
name: '角度测量',
component: TutorialCalcAngle
}
]
}
];
const router = createRouter({
history: createWebHashHistory(),
routes
});
export default router;