auto-sync: 2026-05-22 13:12:38

This commit is contained in:
cfdaily
2026-05-22 13:12:38 +08:00
parent e2001ecc15
commit b77be91625
@@ -59,15 +59,6 @@ export default function MailPanel() {
if (res.ok) {
const data = await res.json();
setDetail(data);
// 标记已读
if (!data.is_read) {
await fetch(`/api/mail/${selectedId}`, {
method: 'PATCH',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ is_read: true }),
});
loadMails();
}
}
} catch { /* */ }
})();