作者 姚富强

合并分支 'dev' 到 'master'

8个页面路由



查看合并请求 !2
... ... @@ -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')
}
]
})
... ...
<template>
<div class="about">
我是账号管理
</div>
</template>
<style>
</style>
\ No newline at end of file
... ...
<template>
<div class="about">
我是课程详情
</div>
</template>
<style>
</style>
\ No newline at end of file
... ...
<template>
<div class="about">
我是验证码
</div>
</template>
<style>
</style>
\ No newline at end of file
... ...
... ... @@ -4,4 +4,6 @@
<template>
<div>这是首页架子(git测试)</div>
<!-- 这里是二级路由的出口 -->
<router-view></router-view>
</template>
... ...
<template>
<div class="about">
我是我的课程页面
</div>
</template>
<style>
</style>
\ No newline at end of file
... ...
<template>
<div class="about">
我是新建课程页面
</div>
</template>
<style>
</style>
\ No newline at end of file
... ...