封装方法,搭建项目

This commit is contained in:
2025-04-01 16:04:54 +08:00
parent e181408248
commit 6f8ddc1daa
15 changed files with 210 additions and 2990 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++;
},
},
});