修复:解决测试发现的问题
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user