From ee8b3a5bce2b70c0f20c102fc8ccf34184998278 Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Wed, 12 Mar 2025 11:24:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(login):=20=E4=BF=AE=E5=A4=8D=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=A1=B5=E9=9D=A2=E6=BB=91=E5=8A=A8=E9=80=80=E5=87=BA?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 onLeave 函数中添加了对 moveX 参数的判断 - 如果 moveX 小于 0,则在 1 秒后隐藏登录页面 - 优化了用户体验,增加了反向滑动退出登录页面的功能 --- app/pages/login/index.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/pages/login/index.vue b/app/pages/login/index.vue index e7ac625..b90d3ef 100644 --- a/app/pages/login/index.vue +++ b/app/pages/login/index.vue @@ -187,6 +187,11 @@ const onLeave =async (moveX, callback) => { isShow.value=false }, 1000) + }else{ + setTimeout(() => { + + isShow.value=false + }, 1000) }