fix notify attr

This commit is contained in:
Timi
2026-08-24 18:20:08 +08:00
parent 8c3711a363
commit 6235cb3e3d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -291,7 +291,7 @@ function getSubject(item: NotifyDetail): string {
}
function getPreview(item: NotifyDetail): string {
const text = item.data?.replace(/\s+/g, " ").trim() || "无通知内容";
const text = item.content?.replace(/\s+/g, " ").trim() || "无通知内容";
return 80 < text.length ? `${text.slice(0, 80)}...` : text;
}