mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-17 19:23:26 +00:00
优化移动端滑动返回
This commit is contained in:
parent
ece17b2aee
commit
1d4602db0b
@ -65,7 +65,7 @@ export default {
|
|||||||
},
|
},
|
||||||
touchend() {
|
touchend() {
|
||||||
// 判断停止时的位置偏移
|
// 判断停止时的位置偏移
|
||||||
if (this.x > 90) {
|
if (this.x > 90 && this.show) {
|
||||||
this.onBack();
|
this.onBack();
|
||||||
}
|
}
|
||||||
this.x = 0
|
this.x = 0
|
||||||
@ -88,9 +88,7 @@ export default {
|
|||||||
this.cacheDrawerOverlay[this.cacheDrawerOverlay.length - 1].close();
|
this.cacheDrawerOverlay[this.cacheDrawerOverlay.length - 1].close();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.show) {
|
this.goBack();
|
||||||
this.goBack();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user