-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrouter.js
45 lines (43 loc) · 1.04 KB
/
router.js
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
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
export default new VueRouter({
mode: 'history',
routes: [
{
path: '/',
name: 'index',
component: () => import('./pages/index')
},
{
path: '/known-single-for',
name: 'known-single-for',
component: () => import('./pages/known-single-for')
},
{
path: '/known-single-prop',
name: 'known-single-prop',
component: () => import('./pages/known-single-prop')
},
{
path: '/unknown-single',
name: 'unknown-single',
component: () => import('./pages/unknown-single')
},
{
path: '/unknown-multiple',
name: 'unknown-multiple',
component: () => import('./pages/unknown-multiple')
},
{
path: '/vue-virtual-scroll-list',
name: 'vue-virtual-scroll-list',
component: () => import('./pages/vue-virtual-scroll-list')
},
{
path: '/normal-list',
name: 'normal-list',
component: () => import('./pages/normal.vue')
}
]
})