1
0
Fork 0

Remove counterStore.

This commit is contained in:
Brian D 2024-12-02 20:59:18 -05:00
parent 0ed7a3969e
commit 0b43f42c85

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