提交 08265317 编写于 作者: W wangjinxin613

test: 解决无法触发 onPullDownRefresh 生命周期导致测试例失败的问题

上级 63e433a2
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
success() { success() {
setTimeout(() => { setTimeout(() => {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
}, 1000) }, 1500)
}, },
}) })
} }
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
success() { success() {
setTimeout(() => { setTimeout(() => {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
}, 1000) }, 1500)
}, },
}) })
} }
......
...@@ -76,7 +76,8 @@ export default { ...@@ -76,7 +76,8 @@ export default {
success() { success() {
setTimeout(() => { setTimeout(() => {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
}, 1000) // 一秒后立即停止下拉刷新不会触发 onPullDownRefresh,因为下拉动画时间大概需要1.1~1.2秒
}, 1500)
}, },
}) })
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册