index.js
2.09 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import Vue from 'vue'
import Router from 'vue-router'
import index from '@/page/index'
import tool from '@/page/tool'
import activityConfig from '@/page/activityConfig'
import activityConfigRedis from '@/page/activityConfigRedis'
import userInfo from '@/page/userInfo'
import apiTest from '@/page/apiTest'
import tjUser from '@/page/tjUser'
import nlp from '@/page/nlp'
import toolAime from '@/page/toolAime'
Vue.use(Router)
export default new Router({
routes: [
{
path: '/',
component: index,
meta: {
title: '测试工具平台'
},
children:[
{
path:'/',
component:tool,
meta: {
title: '测试工具平台'
}
},
{
path: '/tool',
component: tool,
meta: {
title: '测试工具平台'
}
},
{
path: '/activityConfig',
component: activityConfig,
name: 'activityConfig',
meta: {
title: '测试工具平台'
}
},
{
path: '/activityConfigRedis',
component: activityConfigRedis,
name: 'activityConfigRedis',
meta: {
title: '测试工具平台'
}
},
{
path: '/userInfo',
component: userInfo,
name: 'userInfo',
meta: {
title: '测试工具平台'
}
},
{
path: '/tjUser',
component: tjUser,
name: 'tjUser',
meta: {
title: '测试工具平台'
}
},
{
path: '/nlp',
component: nlp,
name: 'nlp',
meta: {
title: '测试工具平台'
}
},
{
path: '/toolAime',
component: toolAime,
name: 'toolAime',
meta: {
title: '测试工具平台'
}
}
]
},
{
path: '/apiTest',
component: apiTest,
name: 'apiTest',
meta: {
title: '测试工具平台'
}
}
]
})