From 3e2a95269eda0d90dcad1ed2cfe9ec31311e3468 Mon Sep 17 00:00:00 2001 From: Jacky Date: Wed, 26 Feb 2025 06:48:00 +0000 Subject: [PATCH] fix(notification): improve notification display and sorting --- app/src/components/Notification/Notification.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/components/Notification/Notification.vue b/app/src/components/Notification/Notification.vue index 20a9c18c..a7cea971 100644 --- a/app/src/components/Notification/Notification.vue +++ b/app/src/components/Notification/Notification.vue @@ -69,7 +69,7 @@ function newSSE() { function init() { loading.value = true - notificationApi.get_list().then(r => { + notificationApi.get_list({ sort: 'desc', order_by: 'created_at' }).then(r => { data.value = r.data unreadCount.value = r.pagination?.total || 0 }).finally(() => { @@ -182,7 +182,8 @@ function viewAll() {