...
|
...
|
@@ -7,13 +7,42 @@ const router = createRouter({ |
|
|
{
|
|
|
path: '/',
|
|
|
name: 'home',
|
|
|
component: Layout
|
|
|
component: Layout,
|
|
|
children: [
|
|
|
{
|
|
|
path: '',
|
|
|
name: 'myclass',
|
|
|
component: () => import('@/views/MyClass.vue')
|
|
|
},
|
|
|
{
|
|
|
path: 'newclass',
|
|
|
name: 'newclass',
|
|
|
component: () => import('@/views/NewClass.vue')
|
|
|
},
|
|
|
{
|
|
|
path: 'account',
|
|
|
name: 'account',
|
|
|
component: () => import('@/views/Account.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')
|
|
|
}
|
|
|
]
|
|
|
})
|
...
|
...
|
|