update:下拉刷新完善

This commit is contained in:
2021-10-09 09:56:26 +08:00
parent 4d32a67c52
commit aecd1c7a3a

View File

@@ -24,7 +24,11 @@ export default {
};
app.ontouchend = function(e) {
this.endValue = e.target.offsetTop;
if (this.endValue - this.startValue > 0) {
if (
this.endValue - this.startValue > 0 ||
app.offsetTop > 0 ||
app.clientTop > 0
) {
window.location.reload();
}
};