init source

This commit is contained in:
leejisun9
2025-08-08 13:11:33 +09:00
parent 02660627d2
commit 61d947a644
57 changed files with 1852863 additions and 0 deletions

27
stores/counter.ts Normal file
View File

@@ -0,0 +1,27 @@
export const useCounterStore = defineStore("counter", () => {
const count = ref(0);
const name = ref("Counter Store");
const doubleCount = computed(() => count.value * 2);
function increment() {
count.value++;
}
function decrement() {
count.value--;
}
function reset() {
count.value = 0;
}
return {
count,
name,
doubleCount,
increment,
decrement,
reset,
};
});