From eca4d8b75284454de78c7f1a7061a4131f276f82 Mon Sep 17 00:00:00 2001 From: fly_mc Date: Sat, 16 Nov 2024 16:05:58 +0800 Subject: [PATCH] use computed noteSummary --- packages/frontend/src/components/MkNote.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index 402ab82d8..5fd14a1ff 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -15,7 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-only >
- +
{{ i18n.ts.pinnedNote }}
@@ -48,7 +48,7 @@ SPDX-License-Identifier: AGPL-3.0-only
- +
@@ -284,6 +284,7 @@ const reactButton = shallowRef(); const clipButton = shallowRef(); const likeButton = shallowRef(); const appearNote = computed(() => spacingNote(getAppearNote(note.value))); +const noteSummary = computed(() => getNoteSummary(appearNote.value)); const galleryEl = shallowRef>(); const isMyRenote = $i && ($i.id === note.value.userId); const showContent = ref(false);