This commit is contained in:
2026-05-03 20:44:04 +08:00
parent 9c7c96bb27
commit 71fc2afb57
29 changed files with 0 additions and 6463 deletions
-12
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 }
})