首次上传

This commit is contained in:
浅念
2025-03-14 16:55:12 +08:00
commit 6a3ae3d600
1537 changed files with 512730 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { defineStore } from 'pinia'
export const useCounterStore = defineStore('counter', {
state: () => ({
count: 0
}),
getters: {
doubleCount: (state) => state.count * 2
},
actions: {
increment() {
this.count++
},
decrement() {
this.count--
}
}
})