Add files via upload

This commit is contained in:
Hamidreza Eidy
2024-06-27 16:21:52 +03:30
committed by GitHub
parent 199b0b546e
commit 92a29a0fda
88 changed files with 20570 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
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 }
})