save and navigate to home where we see tasks
This commit is contained in:
18
src/use-cases/task/components/TaskList.vue
Normal file
18
src/use-cases/task/components/TaskList.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<script setup lang="ts">
|
||||
import { useTaskStore } from '@/use-cases/task/stores/useTask.store'
|
||||
|
||||
const taskStore = useTaskStore()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ul class="task-list">
|
||||
<li v-for="task in taskStore.tasks" :key="task.id">
|
||||
{{ task.title }}
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.task-list {
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user