提交demo

This commit is contained in:
浅念
2026-01-06 10:32:46 +08:00
commit f768835f15
851 changed files with 102336 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--
}
}
})