auto-sync: 2026-05-22 13:12:38
This commit is contained in:
@@ -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 { /* */ }
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user