【代码修复】修复在微信小程序下,切换手机 + 密码登录失败的问题

pull/63/MERGE
YunaiV 2024-07-26 13:14:25 +08:00
parent 0b9e8a39aa
commit d716bc4619
1 changed files with 3 additions and 2 deletions

View File

@ -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;