18 lines
224 B
JavaScript
Raw Normal View History

2025-06-30 09:38:03 +08:00
import {
defineStore
} from 'pinia';
export const useTestStore = defineStore({
id: ' test',
state: () => ({
count: 0,
}),
actions: {
increment() {
this.count++;
},
decrement() {
this.count--;
},
},
});