From e54964f191489ee3422a92690fc5d216a2afab03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Thu, 26 Feb 2026 14:30:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plugins/video/detail/detail.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/plugins/video/detail/detail.vue b/pages/plugins/video/detail/detail.vue index 9b3e7622..fd6022e2 100644 --- a/pages/plugins/video/detail/detail.vue +++ b/pages/plugins/video/detail/detail.vue @@ -1128,9 +1128,9 @@ if (data.code == 0) { const new_data = data.data; // 合并评论列表 - let video_data = JSON.parse(JSON.stringify(this.video_data_list)); + // let video_data = JSON.parse(JSON.stringify(this.video_data_list)); // 更新视频数据 - const new_video_data = video_data.map(item => { + this.video_data_list.forEach(item => { if (item.id == id) { console.log(new_data.data.comments_list, '1'); const new_item = { @@ -1143,12 +1143,12 @@ item = new_item; } }); - console.log(new_video_data, '3'); + console.log(this.video_data_list, '3'); // 更新数据 - this.setData({ - video_data_list: new_video_data - }) + // this.setData({ + // video_data_list: video_data + // }) } } });