index.js
3.15 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
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 callLinuxCommand from '@/page/callLinuxCommand'
import apiTest from '@/page/apiTest'
import apiTestAime from '@/page/apiTestAime'
import tjUser from '@/page/tjUser'
import nlp from '@/page/nlp'
import toolAime from '@/page/toolAime'
import nlpApi from '@/page/nlpApi'
import hadoop from '@/page/hadoop'
import queryProvince from '@/page/queryProvince'
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: '/callLinuxCommand',
component: callLinuxCommand,
name: 'callLinuxCommand',
meta: {
title: '测试工具平台'
}
},
{
path: '/queryProvince',
component: queryProvince,
name: 'queryProvince',
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: '/hadoop',
component: hadoop,
name: 'hadoop',
meta: {
title: '测试工具平台'
}
}
]
},
{
path: '/apiTest',
component: apiTest,
name: 'apiTest',
meta: {
title: '测试工具平台'
}
},
{
path: '/apiTestAime',
component: apiTestAime,
name: 'apiTestAime',
meta: {
title: '测试工具平台'
}
},
{
path: '/nlpApi',
component: nlpApi,
name: 'nlpApi',
meta: {
title: '测试工具平台'
}
}
]
})