From 76c73abf07dca688a2eb1dd54e6b129c38cbad50 Mon Sep 17 00:00:00 2001 From: 77 <270260644@qq.com> Date: Wed, 6 Nov 2024 14:20:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E5=BE=AE=E4=BF=A1=E7=AB=AF?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA=E8=B4=A6=E5=8F=B7=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E5=BC=B9=E7=AA=97=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sheep/hooks/useModal.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sheep/hooks/useModal.js b/sheep/hooks/useModal.js index e9d5b94..c800033 100644 --- a/sheep/hooks/useModal.js +++ b/sheep/hooks/useModal.js @@ -8,6 +8,9 @@ import AuthUtil from '@/sheep/api/member/auth'; // 打开授权弹框 export function showAuthModal(type = 'smsLogin') { const modal = $store('modal'); + modal.$patch((state) => { + state.auth = ''; + }); if (modal.auth !== '') { closeAuthModal(); setTimeout(() => {