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(() => {