From 24bab4ca5d52ccbaa4e39c92703dfcd21f4d7294 Mon Sep 17 00:00:00 2001 From: yu Date: Sun, 1 Oct 2023 11:57:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=B1=95=E5=BC=80=E5=9B=9E?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/MkNoteDetailed.vue | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue index a1360aba9..5bb8ef185 100644 --- a/packages/frontend/src/components/MkNoteDetailed.vue +++ b/packages/frontend/src/components/MkNoteDetailed.vue @@ -12,9 +12,9 @@ SPDX-License-Identifier: AGPL-3.0-only :class="$style.root" >
-
+
@@ -137,9 +137,9 @@ SPDX-License-Identifier: AGPL-3.0-only
-
+
@@ -495,9 +495,9 @@ function blur() { el.value.blur(); } -const repliesLoaded = ref(false); +// const repliesLoaded = ref(false); function loadReplies() { - repliesLoaded.value = true; + // repliesLoaded.value = true; os.api('notes/children', { noteId: appearNote.id, limit: 30, @@ -506,15 +506,20 @@ function loadReplies() { }); } -const conversationLoaded = ref(false); +// const conversationLoaded = ref(false); function loadConversation() { - conversationLoaded.value = true; + // conversationLoaded.value = true; os.api('notes/conversation', { noteId: appearNote.replyId, }).then(res => { conversation.value = res.reverse(); }); } + +onMounted(()=>{ + loadReplies(); + loadConversation(); +});