增加站内信未读提醒和后台通知中心+txt 校验

This commit is contained in:
yml2213
2026-06-19 15:24:15 +08:00
parent 8d5094a8d0
commit a4cdc3e806
30 changed files with 1836 additions and 53 deletions
@@ -7,6 +7,7 @@ import {
markNotificationRead,
type NotificationItem,
} from '@/features/auth/api/notifications'
import { notificationUnreadChangedEvent } from '@/features/auth/composables/useNotificationUnreadCount'
import { formatDateTime } from '@/shared/utils/time'
const loading = ref(false)
@@ -35,6 +36,7 @@ function handleSizeChange() {
async function markRead(id: number) {
await markNotificationRead(id)
window.dispatchEvent(new Event(notificationUnreadChangedEvent))
ElMessage.success('已标记为已读')
await loadNotifications()
}