initial commit

This commit is contained in:
Coldin04 2025-04-25 15:39:24 +08:00
parent 2c527648a9
commit 0a512fa972
36 changed files with 19509 additions and 16 deletions

12
src/stores/counter.ts Normal file
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 }
})