fix(login): 修复登录页面滑动退出功能
- 在 onLeave 函数中添加了对 moveX 参数的判断 - 如果 moveX 小于 0,则在 1 秒后隐藏登录页面 - 优化了用户体验,增加了反向滑动退出登录页面的功能
This commit is contained in:
parent
13bc4f4883
commit
ee8b3a5bce
@ -187,6 +187,11 @@ const onLeave =async (moveX, callback) => {
|
||||
isShow.value=false
|
||||
}, 1000)
|
||||
|
||||
}else{
|
||||
setTimeout(() => {
|
||||
|
||||
isShow.value=false
|
||||
}, 1000)
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user