From 9afd18034b1d43929cb0f8e8e9feda6b4c9c08f0 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Sat, 20 Jul 2024 15:57:12 +0800 Subject: [PATCH] Merge branch 'master' of ssh://dev.zhiheiot.com:29418/mob-components --- plugins/infiniteScroll/CInfiniteScroll.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/infiniteScroll/CInfiniteScroll.vue b/plugins/infiniteScroll/CInfiniteScroll.vue index 2b8e9b4..4dcd65e 100644 --- a/plugins/infiniteScroll/CInfiniteScroll.vue +++ b/plugins/infiniteScroll/CInfiniteScroll.vue @@ -299,17 +299,17 @@ this.hanldeLoadMore(); }, // 刷新加载 - $refresh(autoStart = 'on') { + $refresh(autoStart) { Taro.pageScrollTo({ selector: '#' + this.elmId, scrollTop: 0, }); this.ending = false; this.current = 0; - if (autoStart === 'on') { - this.hanldeLoadMore(); - } else { + if (autoStart === 'off') { this.inital = false; + } else { + this.hanldeLoadMore(); } }, }, -- Gitblit v1.9.1