diff --git a/src/components/post-detail/uh-post-comment-panel.vue b/src/components/post-detail/uh-post-comment-panel.vue index 73cda7e..c57b458 100644 --- a/src/components/post-detail/uh-post-comment-panel.vue +++ b/src/components/post-detail/uh-post-comment-panel.vue @@ -31,6 +31,7 @@ const replyTarget = ref<{ commentName: string replyName?: string displayName: string + rawContent: string } | null>(null) // --- 输入内容 --- @@ -141,8 +142,8 @@ function handleLoadMoreReplies(commentName: string) { } // --- 设置回复目标 --- -function handleReply(commentName: string, replyName: string | undefined, displayName: string) { - replyTarget.value = { commentName, replyName, displayName } +function handleReply(commentName: string, replyName: string | undefined, displayName: string, rawContent: string) { + replyTarget.value = { commentName, replyName, displayName, rawContent } } // --- 取消回复 --- @@ -292,7 +293,7 @@ onMounted(() => { 回复 @@ -346,7 +347,7 @@ onMounted(() => { 回复 @@ -388,11 +389,14 @@ onMounted(() => { - - - 回复 {{ replyTarget.displayName }} + + + 回复 {{ replyTarget.displayName }} + + + - +