From b1c5db9d2c1beeb3b6a0454063ef5cda04f7b685 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, 12 Mar 2026 09:39:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plugins/video/detail/detail.nvue | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pages/plugins/video/detail/detail.nvue b/pages/plugins/video/detail/detail.nvue index e34877fb..49edec12 100644 --- a/pages/plugins/video/detail/detail.nvue +++ b/pages/plugins/video/detail/detail.nvue @@ -995,18 +995,18 @@ update_display_video_list(list) { try { // 不理解为什么这里时undefined的 - // 根据 weex 的通用做法,需要同时改变“引用”和“长度”两个维度才能被识别数组更新。 - // 1. 先清空原数组(触发长度变化) - if (this.display_video_list && this.display_video_list.length > 0) { - this.display_video_list.splice(0, this.display_video_list.length) - } else { - this.display_video_list = []; - } - // this.$nextTick(() => { - // setTimeout(() => { - // 2. 再把新数据 push 进去(触发内容变化) - list.forEach(item => this.display_video_list.push(item)) - // }, 0); + // 根据 weex 的通用做法,需要同时改变“引用”和“长度”两个维度才能被识别数组更新。 + // 1. 先清空原数组(触发长度变化) + if (this.display_video_list && this.display_video_list.length > 0) { + this.display_video_list.splice(0, this.display_video_list.length) + } else { + this.display_video_list = []; + } + // this.$nextTick(() => { + // setTimeout(() => { + // 2. 再把新数据 push 进去(触发内容变化) + list.forEach(item => this.display_video_list.push(item)) + // }, 0); // }); } catch (e) { console.log('update_display_video_list', e);