reset store facilities
This commit is contained in:
@@ -1,10 +1,14 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import TaskList from '@/use-cases/task/components/TaskList.vue'
|
import TaskList from '@/use-cases/task/components/TaskList.vue'
|
||||||
|
import { useTaskStore } from '@/use-cases/task/stores/useTask.store'
|
||||||
|
|
||||||
|
const taskStore = useTaskStore()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<main>
|
<main>
|
||||||
<RouterLink :to="{ name: 'new-task' }">New task</RouterLink>
|
<RouterLink :to="{ name: 'new-task' }">New task</RouterLink>
|
||||||
<task-list />
|
<task-list />
|
||||||
|
<button @click="() => taskStore.reset()">reset list</button>
|
||||||
</main>
|
</main>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user