2024.2.21
This commit is contained in:
@@ -47,17 +47,17 @@ export const useUser = defineStore("useUser", {
|
||||
/**
|
||||
* 获取消息列表
|
||||
*/
|
||||
async getNotices() {
|
||||
try {
|
||||
const res = await getNotices({
|
||||
currPage: 1,
|
||||
size: 10
|
||||
})
|
||||
this.notices.num = res.unread
|
||||
this.notices.list = res.list.list
|
||||
} catch (error) {
|
||||
console.error('获取消息列表error=', error)
|
||||
}
|
||||
}
|
||||
// async getNotices() {
|
||||
// try {
|
||||
// const res = await getNotices({
|
||||
// currPage: 1,
|
||||
// size: 10
|
||||
// })
|
||||
// this.notices.num = res.unread
|
||||
// this.notices.list = res.list.list
|
||||
// } catch (error) {
|
||||
// console.error('获取消息列表error=', error)
|
||||
// }
|
||||
// }
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user