初始代码

This commit is contained in:
wangmingwei
2026-04-21 16:55:00 +08:00
parent be9f1657b9
commit 35101db700
1335 changed files with 211213 additions and 0 deletions

18
store/modules/test.js Normal file
View File

@@ -0,0 +1,18 @@
import {
defineStore
} from 'pinia';
export const useTestStore = defineStore({
id: ' test',
state: () => ({
count: 0,
}),
actions: {
increment() {
this.count++;
},
decrement() {
this.count--;
},
},
});