-
+
@@ -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();
+});