feat: 支持注册带入昵称

This commit is contained in:
橙子
2024-10-02 23:25:29 +08:00
parent d4e8ce9c89
commit 94ee0fb058
13 changed files with 75 additions and 23 deletions

View File

@@ -154,7 +154,12 @@ const noticeForNoReadCount = computed(() => {
})
//加载初始化离线消息
onMounted(async () => {
await fetchNoticeData();
//登录了才去判断消息通知
if (isLogin.value)
{
await fetchNoticeData();
}
})
const fetchNoticeData = async () => {
const { data } = await getNoticeList({ maxResultCount: 20 });