You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
463 B
15 lines
463 B
import { defineStore } from "pinia" |
|
import type { Todo } from "@/schemas/todo" |
|
|
|
export const useTodoStore = defineStore("todo", () => { |
|
|
|
const todos = ref<Todo[]>([ |
|
{ id: "d8681644-74d0-4a30-90db-06baa277d0a0", title: "laundry" }, |
|
{ id: "03c5bf55-f528-43a2-89a1-1a1afb0fa4f6", title: "feed pet" }, |
|
{ id: "356cd252-bef8-4a1c-ba81-5a68d89df56e", title: "run" } |
|
]); |
|
|
|
return { todos } |
|
}, { |
|
persist: process.env.NODE_ENV === 'development' ? true : false, |
|
})
|
|
|