fix(notify): update read status for tablet

This commit is contained in:
Timi
2026-11-18 16:15:51 +08:00
parent 052cd28318
commit e88374c377
2 changed files with 15 additions and 0 deletions
+11
View File
@@ -94,6 +94,7 @@
<user-notify-detail
:key="`detail-${selectedId}`"
:notify-id="selectedId"
@read="handleDetailRead"
/>
</template>
</master-detail-page>
@@ -233,6 +234,16 @@ async function refresh(): Promise<void> {
}
}
async function handleDetailRead(): Promise<void> {
try {
await reloadList();
await loadUnreadCount();
} catch (error) {
console.warn("已读通知刷新失败", error);
Message.error("通知列表刷新失败");
}
}
// ---------- 操作 ----------
const isMarkingAllRead = ref(false);