Repository navigation
Expand file tree
/
Copy pathindex.js
More file actions
101 lines (94 loc) · 2.13 KB
/
Copy pathindex.js
File metadata and controls
101 lines (94 loc) · 2.13 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
import Vue from 'vue'
import Router from 'vue-router'
import Layout from '../layout'
import Home from './Home'
import Archives from './Archives'
import About from './About'
import Resume from './Resume'
import Markdown from './onlineTools/Markdown'
import Reg from './onlineTools/Reg'
import Base from './onlineTools/Base'
import Draw from './onlineTools/Draw'
import DealWidthImage from './onlineTools/DealWidthImage'
import compressImage from './onlineTools//DealWidthImage/compress'
import cropImage from './onlineTools/DealWidthImage/crop'
import Doraemon from './onlyCss/Doraemon'
import Ui from './onlyCss/Ui'
import Calculator from './onlineTools//Calculator'
Vue.use(Router)
export default new Router({
mode: 'hash',
routes: [
{
name: 'Layout',
path: '/',
component: Layout,
children: [
{
name: 'Home',
path: '/',
component: Home
},
{
name: 'Archives',
path: '/archives',
component: Archives
},
{
name: 'About',
path: '/about',
component: About
},
{
name: 'Reg',
path: '/reg',
component: Reg
},
{
name: 'Base',
path: '/base',
component: Base
},
{
name: 'Draw',
path: '/draw',
component: Draw
},
{
name: 'Doraemon',
path: '/doraemon',
component: Doraemon
},
{
name: 'Ui',
path: '/ui',
component: Ui
},
{
name: 'Calculator',
path: '/cal',
component: Calculator
},
{
name: 'DealWidthImage',
path: '/dealimg',
component: DealWidthImage,
children: [
{ path: 'compress', component: compressImage },
{ path: 'crop', component: cropImage }
]
}
]
},
{
name: 'Resume',
path: '/resume',
component: Resume
},
{
name: 'Markdown',
path: '/markdown',
component: Markdown
}
]
})