fix: 解决帖子评论问题

This commit is contained in:
tim
2025-08-10 12:46:20 +08:00
parent 1a8e216aa9
commit 6ab4879968

View File

@@ -80,7 +80,7 @@
</div>
<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-sort-container">
@@ -390,7 +390,7 @@ export default {
}
}
const postComment = async (text, clear) => {
const postComment = async (parentUserName, text, clear) => {
if (!text.trim()) return
console.debug('Posting comment', { postId, text })
isWaitingPostingComment.value = true