From 0de2f27018ef2308d11e79d16118377378e662d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Fri, 13 Mar 2026 14:58:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E8=BE=93=E5=85=A5=E6=A1=86?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plugins/video/detail/detail.nvue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/plugins/video/detail/detail.nvue b/pages/plugins/video/detail/detail.nvue index 68b23ae4..426e51e6 100644 --- a/pages/plugins/video/detail/detail.nvue +++ b/pages/plugins/video/detail/detail.nvue @@ -899,6 +899,7 @@ // 评论滚动事件,记录滚动位置(带防抖) handle_comment_scroll(e) { try { + this.active_dropdown_id = null; // 清除之前的防抖定时器 if (this.comment_scroll_debounce_timer) { clearTimeout(this.comment_scroll_debounce_timer); @@ -1039,6 +1040,7 @@ // 评论 send_comment() { try { + this.active_dropdown_id = null; let comment_text = this.comment_input_value; if (!comment_text.trim()) return; @@ -1118,7 +1120,7 @@ // 展开子评论 open_sub_comment(id, is_level) { try { - console.log(id); + this.active_dropdown_id = null; const comment = this.active_comments.find(item => item.id == id); if (comment) { comment.show_sub_comment = true; @@ -1164,6 +1166,7 @@ // 收起子评论 close_sub_comment(id) { try { + this.active_dropdown_id = null; const comment = this.active_comments.find(item => item.id == id); if (comment) { comment.show_sub_comment = false; @@ -1302,7 +1305,8 @@ }, // 删除回复评论数据 comment_data_delete() { - try { + try { + this.active_dropdown_id = null; this.comments_reply_data = {}; } catch (error) { console.error('comment_data_delete error:', error);