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