Files
tk-page-Fan/src/stores/notice.js

12 lines
203 B
JavaScript
Raw Normal View History

2025-04-01 16:04:54 +08:00
import { defineStore } from 'pinia';
export const noticeStore = defineStore('noticeNum', {
state: () => {
return { data: { num: 0 } };
},
actions: {
increment() {
this.data.num++;
},
},
});