This commit is contained in:
nquidox 2025-09-14 14:19:19 +03:00
parent 5c6c970a6a
commit 1a1dfad6a5

View file

@ -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 }
})