From 7c4403aefb73ca8258d6d159ab8c2fd6b961d29f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Sat, 28 Feb 2026 11:49:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=9E=E5=A4=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plugins/video/detail/detail.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/plugins/video/detail/detail.vue b/pages/plugins/video/detail/detail.vue index 19d395d3..2d2a691a 100644 --- a/pages/plugins/video/detail/detail.vue +++ b/pages/plugins/video/detail/detail.vue @@ -1102,8 +1102,10 @@ item.comments_count++; if (!item.show_sub_comment) { item.show_sub_comment = true; - item.page = 0; - item.page_total = 1; + // 如果回复总数跟当前显示的数量对得上,就不显示展开. 如果之前没有页面时,设置页数和分页都为1, 否则保持之前的分页 + item.page = item.comments_count == item.sub_comments.length ? (!isEmpty(item.page) && item.page > 0 ? item.page : 1) : 0; + // 如果之前没有数据时,设置总页数为1 + item.page_total = !isEmpty(item.page_total) ? item.page_total : 1; } } })