Files

19 lines
225 B
JavaScript
Raw Permalink Normal View History

2026-04-21 16:55:00 +08:00
import {
defineStore
} from 'pinia';
export const useTestStore = defineStore({
id: ' test',
state: () => ({
count: 0,
}),
actions: {
increment() {
this.count++;
},
decrement() {
this.count--;
},
},
});