feat:紧急修复

This commit is contained in:
小张 2025-08-30 14:05:01 +08:00
parent 537a7f8fe6
commit 48d80ef281
2 changed files with 6 additions and 6 deletions

View File

@ -290,7 +290,7 @@
</div>
<!-- 回复区域示例 -->
<div class="comment-replies" v-if="comment.id === 1">
<div class="comment-replies" v-if="String(comment.id) === '1'">
<!-- 讲师回复 -->
<div class="reply-item instructor-reply">
<div class="reply-avatar">
@ -1097,7 +1097,7 @@ const submitComment = () => {
}
//
const startReply = (commentId: number, username: string) => {
const startReply = (commentId: string | number, username: string) => {
replyingTo.value = commentId
replyToUsername.value = username
replyText.value = ''
@ -1145,7 +1145,7 @@ const handleReplyTextareaClick = (event: MouseEvent) => {
}
//
const replyingTo = ref<number | null>(null)
const replyingTo = ref<string | number | null>(null)
const replyText = ref('')
const replyToUsername = ref('')

View File

@ -326,7 +326,7 @@
</div>
<!-- 回复区域示例 -->
<div class="comment-replies" v-if="comment.id === 1">
<div class="comment-replies" v-if="String(comment.id) === '1'">
<!-- 讲师回复 -->
<div class="reply-item instructor-reply">
<div class="reply-avatar">
@ -1346,7 +1346,7 @@ const submitComment = () => {
}
//
const startReply = (commentId: number, username: string) => {
const startReply = (commentId: string | number, username: string) => {
replyingTo.value = commentId
replyToUsername.value = username
replyText.value = ''
@ -1394,7 +1394,7 @@ const handleReplyTextareaClick = (event: MouseEvent) => {
}
//
const replyingTo = ref<number | null>(null)
const replyingTo = ref<string | number | null>(null)
const replyText = ref('')
const replyToUsername = ref('')