init new route for a new task

This commit is contained in:
Julien Calixte
2023-04-08 12:24:52 +02:00
parent ad423de520
commit 812e7509d5
2 changed files with 19 additions and 3 deletions

View File

@@ -12,10 +12,12 @@ const router = createRouter({
{
path: '/about',
name: 'about',
// 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('../views/AboutView.vue')
},
{
path: '/new-task',
name: 'new-task',
component: () => import('../views/task/NewTask.vue')
}
]
})

View File

@@ -0,0 +1,14 @@
<script setup lang="ts">
import NewTaskForm from '@/use-cases/task/components/NewTaskForm.vue'
</script>
<template>
<div class="new-task">
<NewTaskForm />
</div>
</template>
<style scoped>
.new-task {
}
</style>