From 7541d993fcb09ced7ddcb8c645711e8a0983e869 Mon Sep 17 00:00:00 2001 From: brayo Date: Fri, 22 Mar 2024 18:00:22 +0300 Subject: [PATCH] delete counter store --- src/stores/counter.ts | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 src/stores/counter.ts diff --git a/src/stores/counter.ts b/src/stores/counter.ts deleted file mode 100644 index b6757ba..0000000 --- a/src/stores/counter.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ref, computed } from 'vue' -import { defineStore } from 'pinia' - -export const useCounterStore = defineStore('counter', () => { - const count = ref(0) - const doubleCount = computed(() => count.value * 2) - function increment() { - count.value++ - } - - return { count, doubleCount, increment } -})