diff --git a/pages/plugins/video/detail/detail.nvue b/pages/plugins/video/detail/detail.nvue index 03d1c44a..5e4f0e6f 100644 --- a/pages/plugins/video/detail/detail.nvue +++ b/pages/plugins/video/detail/detail.nvue @@ -90,8 +90,8 @@ - - + + {{$t('common.comment')}} @@ -145,9 +145,9 @@ @@ -164,17 +164,17 @@ - + - - - - + + + + @@ -236,9 +236,9 @@ - - - + + + @@ -783,7 +783,7 @@ // 图片上传回调 upload_images_event(res) { - try { + try { console.log(res); if((res || null) != null) { // 存储上传图片内容 @@ -834,6 +834,14 @@ } }, + comment_modal_content(e) { + try { + e.stopPropagation(); + } catch (error) { + console.error('comment_modal error:', error); + } + }, + // 收藏 handle_like(e) { try { @@ -882,8 +890,7 @@ }, // 关闭评论区 close_comment_modal(e) { - try { - + try { this.active_dropdown_id = null; this.show_comment_modal = false; this.comment_scroll_top = 0 + Math.random(); // 关闭评论时滚动到最顶部 @@ -899,11 +906,12 @@ if (this.comment_move_throttle_timer) { clearTimeout(this.comment_move_throttle_timer); this.comment_move_throttle_timer = null; - } - - if (this.$refs.commentRef) { - this.$refs.commentRef.blur(); } + + if (this.$refs.commentRef) { + this.$refs.commentRef.blur(); + } + e.stopPropagation(); } catch (error) { console.error('close_comment_modal error:', error); }