2024.2.21

This commit is contained in:
魏啾
2024-02-21 18:42:17 +08:00
parent 786bceb7a4
commit 3db00932f7
21 changed files with 758 additions and 403 deletions

View File

@@ -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)
// }
// }
},
});