Compare commits

...

2 Commits

Author SHA1 Message Date
573c1d8447 Merge branch 'master' of http://118.178.224.202:3000/ewide/zsxt_nbzs_h5 2021-10-09 15:29:02 +08:00
e8b31e4351 update:下拉刷新bug修复 2021-10-09 15:28:40 +08:00

View File

@@ -23,7 +23,10 @@ export default {
}; };
document.body.ontouchend = function(e) { document.body.ontouchend = function(e) {
this.endValue = e.changedTouches[0].pageY; this.endValue = e.changedTouches[0].pageY;
if (this.endValue - this.startValue > 0) { if (
this.endValue - this.startValue > 0 &&
e.changedTouches[0].pageY === e.changedTouches[0].clientY
) {
window.location.reload(); window.location.reload();
} }
}; };