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
@@ -8,7 +8,7 @@
</div> </div>
<pass-time-label class="time" :timestamp="detail.sendAt" underline /> <pass-time-label class="time" :timestamp="detail.sendAt" underline />
</header> </header>
<section v-text="detail.data" /> <section v-text="detail.content" />
</article> </article>
<t-empty <t-empty
v-else v-else
+1 -1
View File
@@ -291,7 +291,7 @@ function getSubject(item: NotifyDetail): string {
} }
function getPreview(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; return 80 < text.length ? `${text.slice(0, 80)}...` : text;
} }