fix notify attr
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user