-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.ts
51 lines (49 loc) · 1.32 KB
/
routes.ts
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
import { RouteNames } from '@shared/constants'
import Home from './index.vue'
export const routes = [
{
path: '/',
name: RouteNames.HOME,
meta: { title: 'Home', isShowTemplatePage: true },
component: Home,
},
{
path: '/qrcode-generator',
name: RouteNames.QR_CODE_GENERATOR,
meta: { title: 'Qr code generator', isShowTemplatePage: true },
component: () => import('./qrcode/qrcode-generator.vue'),
},
{
path: '/qrcode-reader',
name: RouteNames.QR_CODE_READER,
meta: { title: 'Qr code reader', isShowTemplatePage: true },
component: () => import('./qrcode/qrcode-reader.vue'),
},
{
path: '/intersection-api',
children: [
{
path: 'infinity-scroll',
name: RouteNames.INFINITY_SCROLL,
component: () => import('./intersection-api/infinity-scroll.vue'),
meta: { title: 'Infinity scroll', isShowTemplatePage: true },
},
{
path: 'reactive-aside-content',
name: RouteNames.REACTIVE_ASIDE_CONTENT,
component: () => import('./intersection-api/reactive-aside-content.vue'),
meta: {
title: 'Reactive aside content',
isShowTemplatePage: true,
},
},
],
},
{
path: '/:catchAll(.*)',
name: RouteNames.NOT_FOUND,
redirect: {
name: RouteNames.HOME,
},
},
]