From d716bc46199340257105e6e64b9751eaa97da3e0 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 26 Jul 2024 13:14:25 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BB=A3=E7=A0=81=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E3=80=91=E4=BF=AE=E5=A4=8D=E5=9C=A8=E5=BE=AE=E4=BF=A1=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E4=B8=8B=EF=BC=8C=E5=88=87=E6=8D=A2=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=20+=20=E5=AF=86=E7=A0=81=E7=99=BB=E5=BD=95=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sheep/hooks/useModal.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sheep/hooks/useModal.js b/sheep/hooks/useModal.js index e9d5b94e..b8505256 100644 --- a/sheep/hooks/useModal.js +++ b/sheep/hooks/useModal.js @@ -9,12 +9,13 @@ import AuthUtil from '@/sheep/api/member/auth'; export function showAuthModal(type = 'smsLogin') { const modal = $store('modal'); if (modal.auth !== '') { - closeAuthModal(); + // 注意:延迟修改,保证下面的 closeAuthModal 先执行掉 setTimeout(() => { modal.$patch((state) => { state.auth = type; }); - }, 100); + }, 200); + closeAuthModal(); } else { modal.$patch((state) => { state.auth = type;