fix: 解决帖子评论问题

This commit is contained in:
tim
2025-08-10 12:46:20 +08:00
parent bda2b54ce9
commit 57acb37e84

View File

@@ -78,7 +78,7 @@
</div> </div>
<CommentEditor @submit="postComment" :loading="isWaitingPostingComment" :disabled="!loggedIn" <CommentEditor @submit="postComment" :loading="isWaitingPostingComment" :disabled="!loggedIn"
:show-login-overlay="!loggedIn" /> :show-login-overlay="!loggedIn" :parent-user-name="author.username" />
<div class="comment-config-container"> <div class="comment-config-container">
<div class="comment-sort-container"> <div class="comment-sort-container">
@@ -387,7 +387,7 @@ export default {
} }
} }
const postComment = async (text, clear) => { const postComment = async (parentUserName, text, clear) => {
if (!text.trim()) return if (!text.trim()) return
console.debug('Posting comment', { postId, text }) console.debug('Posting comment', { postId, text })
isWaitingPostingComment.value = true isWaitingPostingComment.value = true