From 86131ad7de01d9ec048d0aade8a1242a76cb1af2 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Sun, 21 Jul 2024 23:58:18 +0800 Subject: [PATCH] fix(notifications-popup): use `recv_reply` and `recv_like` to represent reply and like count --- src/components/TopBar/components/NotificationsPop.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/TopBar/components/NotificationsPop.vue b/src/components/TopBar/components/NotificationsPop.vue index da62b51e..8aa11d9c 100644 --- a/src/components/TopBar/components/NotificationsPop.vue +++ b/src/components/TopBar/components/NotificationsPop.vue @@ -47,9 +47,10 @@ function getUnreadMessageCount() { api.notification.getUnreadMsg().then((res) => { if (res.code === 0) { const resData = res.data - list.value[0].unreadCount = resData.reply + + list.value[0].unreadCount = resData.recv_reply list.value[1].unreadCount = resData.at - list.value[2].unreadCount = resData.like + list.value[2].unreadCount = resData.recv_like list.value[3].unreadCount = resData.sys_msg } }).catch(() => {