1
0
forked from noxious/client

Cleaned a bit

This commit is contained in:
root
2024-04-26 23:45:29 +02:00
parent 4fd5430c54
commit 11236c04c1
6 changed files with 40 additions and 41 deletions

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