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