初始化仓库

This commit is contained in:
2025-07-01 21:02:39 +08:00
parent ed0ca8d330
commit c33ae29649
46 changed files with 17385 additions and 0 deletions

12
src/stores/notice.js Normal file
View File

@@ -0,0 +1,12 @@
import { defineStore } from 'pinia';
export const noticeStore = defineStore('noticeNum', {
state: () => {
return { data: { num: 0 } };
},
actions: {
increment() {
this.data.num++;
},
},
});