From c8c3d48f4dde2c4f7703f287483d0071a737c78d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Tue, 22 Oct 2024 16:24:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=BC=E8=88=AA=E7=BB=84?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy/nav-group.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/diy/nav-group.vue b/components/diy/nav-group.vue index 06c4e17c..e84bd38f 100644 --- a/components/diy/nav-group.vue +++ b/components/diy/nav-group.vue @@ -104,7 +104,7 @@ nav_style: new_content.nav_style || 'image_with_text', // 是否显示文字和图片 nav_content_list: this.get_nav_content_list(new_content), }); - this.$nextTick(() => { + setTimeout(() => { const query = uni.createSelectorQuery().in(this); // 选择我们想要的元素 query @@ -118,7 +118,7 @@ } }) .exec(); // 执行查询 - }); + }, 0); }, get_nav_content_list(data) { // 深拷贝一下,确保不会出现问题