pk优化版

This commit is contained in:
2026-02-26 13:15:19 +08:00
parent d4c0dcf6b1
commit 5c1911314f
22 changed files with 742 additions and 386 deletions

View File

@@ -43,3 +43,20 @@ export const pkIMloginStore = defineStore('pkIMlogin', {
}
}
})
export const pkUnreadStore = defineStore('pkUnread', {
state: () => {
return { count: 0 }
},
actions: {
setCount(count) {
this.count = count
},
decrease(num = 1) {
this.count = Math.max(0, this.count - num)
},
clear() {
this.count = 0
}
}
})