修复:解决测试发现的问题

This commit is contained in:
2025-11-12 16:00:44 +08:00
parent 1da75a59f2
commit 1daa6367c9
29 changed files with 133 additions and 182 deletions

View File

@@ -192,16 +192,13 @@ const getCode = async () => {
if (!isEmailVerified(email.value)) return
try {
uni.showLoading()
await commonApi.sendMailCaptcha(email.value)
uni.hideLoading()
uni.showToast({
title: t('login.sendCodeSuccess'),
icon: 'none'
})
getCodeState()
} catch (error) {
uni.hideLoading()
console.error('Send code error:', error)
}
}
@@ -268,9 +265,7 @@ const onSubmit = async () => {
if (!isPasswordMatch()) return
try {
uni.showLoading()
await resetPassword(email.value, code.value, password.value)
uni.hideLoading()
uni.showModal({
title: t('global.tips'),
@@ -281,7 +276,6 @@ const onSubmit = async () => {
}
})
} catch (error) {
uni.hideLoading()
console.error('Reset password error:', error)
}
}