Initial commit
This commit is contained in:
commit
fde22017a1
35 changed files with 5476 additions and 0 deletions
31
src/router/index.js
Normal file
31
src/router/index.js
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import CoachView from '../views/CoachView.vue'
|
||||
import MemberView from '../views/MemberView.vue'
|
||||
import CourseView from '../views/CourseView.vue'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
redirect: '/coach',
|
||||
},
|
||||
{
|
||||
path: '/coach',
|
||||
name: 'coach',
|
||||
component: CoachView,
|
||||
},
|
||||
{
|
||||
path: '/member',
|
||||
name: 'member',
|
||||
component: MemberView,
|
||||
},
|
||||
{
|
||||
path: '/course',
|
||||
name: 'course',
|
||||
component: CourseView,
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
export default router
|
||||
Loading…
Add table
Add a link
Reference in a new issue