fix notify attr
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
</div>
|
||||
<pass-time-label class="time" :timestamp="detail.sendAt" underline />
|
||||
</header>
|
||||
<section v-text="detail.data" />
|
||||
<section v-text="detail.content" />
|
||||
</article>
|
||||
<t-empty
|
||||
v-else
|
||||
|
||||
@@ -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