index.js
1.6 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
import { createRouter, createWebHistory } from 'vue-router'
import Layout from '@/views/Layout.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'home',
component: Layout,
children: [
{
path: '',
name: 'myclass',
component: () => import('@/views/MyClass.vue')
},
{
path: 'address',
name: 'addressBook',
component: () => import('@/views/addressBook.vue')
},
{
path: 'manage',
name: 'classManage',
component: () => import('@/views/classManagement.vue')
},
{
path: 'disk',
name: 'disk',
component: () => import('@/views/Disk.vue')
},
{
path: 'news',
name: 'news',
component: () => import('@/views/News.vue')
},
{
path: 'note',
name: 'note',
component: () => import('@/views/Note.vue')
},
{
path: 'account',
name: 'account',
component: () => import('@/views/Account.vue')
},
{
path: 'home',
name: 'home',
component: () => import('@/views/Hone.vue')
},
]
},
{
path: '/login',
name: 'login',
component: () => import('@/views/Login.vue')
},
{
path: '/code',
name: 'code',
component: () => import('@/views/Code.vue')
},
{
path: '/detail',
name: 'detail',
component: () => import('@/views/ClassDetail.vue')
}
]
})
export default router