added matches view and home view

This commit is contained in:
2023-07-23 02:12:22 +02:00
parent d21d3b5b34
commit 941002dcbf
3 changed files with 14 additions and 6 deletions

View File

@@ -12,15 +12,20 @@ const routes = [
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// 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({
history: createWebHistory(process.env.BASE_URL),
routes,
routes
})
export default router

View File

@@ -1,7 +1,7 @@
<template>
<HelloWorld />
<home-hero />
</template>
<script lang="ts" setup>
import HelloWorld from '@/components/HelloWorld.vue'
import HomeHero from '@/components/Home/HomeHero.vue'
</script>

3
src/views/Matches.vue Normal file
View File

@@ -0,0 +1,3 @@
<template>Matches</template>
<script setup lang="ts"></script>