feat(消息通知): 消息通知

顶部消息通知完成
This commit is contained in:
猿小天
2023-03-07 22:13:41 +08:00
parent c63ad90821
commit c0c627b8df
10 changed files with 351 additions and 30 deletions

View File

@@ -0,0 +1,15 @@
import {defineStore} from "pinia";
/**
* 消息中心
*/
export const messageCenterStore = defineStore('messageCenter', {
state: () => ({
// 未读消息
unread: 0
}),
actions: {
async setUnread (number:any) {
this.unread = number
}
},
});