From 5c7c5dab9d39f74f94aad7de8a432ebbdeb19e73 Mon Sep 17 00:00:00 2001 From: Kagameow Date: Wed, 3 Jul 2024 15:43:40 +0200 Subject: [PATCH] removed pinia code --- 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 e884e6d..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 }; -});