diff --git a/src/views/AICompanion.vue b/src/views/AICompanion.vue index 92eb38a..49b5df0 100644 --- a/src/views/AICompanion.vue +++ b/src/views/AICompanion.vue @@ -290,7 +290,7 @@ -
+
@@ -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(null) +const replyingTo = ref(null) const replyText = ref('') const replyToUsername = ref('') diff --git a/src/views/CourseExchanged.vue b/src/views/CourseExchanged.vue index 31e0820..0871467 100644 --- a/src/views/CourseExchanged.vue +++ b/src/views/CourseExchanged.vue @@ -326,7 +326,7 @@
-
+
@@ -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(null) +const replyingTo = ref(null) const replyText = ref('') const replyToUsername = ref('')