index.js.bak
1.86 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
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
/* Layout */
import Layout from '@/layout'
const router = [
{
path: '/client',
component: Layout,
children: [
{
path: 'index',
component: () => import('@/views/client/index'),
name: 'client',
meta: { title: 'client', icon: 'guide', noCache: true, activeMenu: '/client/index' }
}
]
},
{
path: '/user',
component: Layout,
children: [
{
path: 'index',
component: () => import('@/views/user/index'),
name: 'user',
meta: { title: 'user', icon: 'user', noCache: true }
}
]
},
{
path: '/resource-type',
component: Layout,
children: [
{
path: 'index',
component: () => import('@/views/resource-type/index'),
name: 'resourceType',
meta: { title: 'resourceType', icon: 'list', noCache: true }
}
]
},
{
path: '/resource',
component: Layout,
children: [
{
path: 'index',
component: () => import('@/views/resource/index'),
name: 'resource',
meta: { title: 'resource', icon: 'lock', noCache: true }
}
]
},
{
path: '/message-type',
component: Layout,
children: [
{
path: 'index',
component: () => import('@/views/message-type/index'),
name: 'messageType',
meta: { title: 'messageType', icon: 'message', noCache: true }
}
]
},
{
path: '/template',
component: Layout,
children: [
{
path: 'index',
component: () => import('@/views/template/index'),
name: 'template',
meta: { title: 'template', icon: 'nested', noCache: true }
}
]
},
{ path: '*', redirect: '/404', hidden: true }
]
export default new Router({
scrollBehavior: () => ({ y: 0 }),
routes: router
})