added matches view and home view
This commit is contained in:
@@ -12,15 +12,20 @@ const routes = [
|
|||||||
// route level code-splitting
|
// route level code-splitting
|
||||||
// this generates a separate chunk (about.[hash].js) for this route
|
// this generates a separate chunk (about.[hash].js) for this route
|
||||||
// which is lazy-loaded when the route is visited.
|
// which is lazy-loaded when the route is visited.
|
||||||
component: () => import(/* webpackChunkName: "home" */ '@/views/Home.vue'),
|
component: () => import(/* webpackChunkName: "home" */ '@/views/Home.vue')
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'matches',
|
||||||
|
name: 'Matches',
|
||||||
|
component: () => import('@/views/Matches.vue')
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(process.env.BASE_URL),
|
history: createWebHistory(process.env.BASE_URL),
|
||||||
routes,
|
routes
|
||||||
})
|
})
|
||||||
|
|
||||||
export default router
|
export default router
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<HelloWorld />
|
<home-hero />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import HelloWorld from '@/components/HelloWorld.vue'
|
import HomeHero from '@/components/Home/HomeHero.vue'
|
||||||
</script>
|
</script>
|
||||||
|
3
src/views/Matches.vue
Normal file
3
src/views/Matches.vue
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<template>Matches</template>
|
||||||
|
|
||||||
|
<script setup lang="ts"></script>
|
Reference in New Issue
Block a user