aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/stores/counter.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/stores/counter.ts')
-rw-r--r--frontend/src/stores/counter.ts12
1 files changed, 0 insertions, 12 deletions
diff --git a/frontend/src/stores/counter.ts b/frontend/src/stores/counter.ts
deleted file mode 100644
index b6757ba..0000000
--- a/frontend/src/stores/counter.ts
+++ /dev/null
@@ -1,12 +0,0 @@
1import { ref, computed } from 'vue'
2import { defineStore } from 'pinia'
3
4export const useCounterStore = defineStore('counter', () => {
5 const count = ref(0)
6 const doubleCount = computed(() => count.value * 2)
7 function increment() {
8 count.value++
9 }
10
11 return { count, doubleCount, increment }
12})