mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-06 10:07:36 +08:00
fix: 本地ui优先已读
This commit is contained in:
@@ -542,7 +542,7 @@ import {
|
||||
fetchNotifications,
|
||||
fetchUnreadCount,
|
||||
isLoadingMessage,
|
||||
markRead as markNotificationRead,
|
||||
markNotificationRead,
|
||||
notifications,
|
||||
markAllRead,
|
||||
hasMore,
|
||||
@@ -598,7 +598,7 @@ const togglePref = async (pref) => {
|
||||
}
|
||||
|
||||
const markRead = async (id) => {
|
||||
await markNotificationRead(id)
|
||||
markNotificationRead(id)
|
||||
if (selectedTab.value === 'unread') {
|
||||
const index = notifications.value.findIndex((n) => n.id === id)
|
||||
if (index !== -1) notifications.value.splice(index, 1)
|
||||
|
||||
Reference in New Issue
Block a user