mirror of
https://github.com/certd/certd.git
synced 2026-04-23 19:57:27 +08:00
chore: 新网已支持
This commit is contained in:
@@ -60,7 +60,7 @@ watch(
|
||||
},
|
||||
value => {
|
||||
if (value == null) {
|
||||
reset();
|
||||
resetImageCode();
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
@@ -155,20 +155,15 @@ watch(forgotPasswordType, () => {
|
||||
});
|
||||
|
||||
const handleFinish = async (values: any) => {
|
||||
try {
|
||||
await userStore.forgotPassword(
|
||||
toRaw({
|
||||
type: forgotPasswordType.value,
|
||||
input: formState.input,
|
||||
validateCode: formState.validateCode,
|
||||
password: formState.password,
|
||||
confirmPassword: formState.confirmPassword,
|
||||
}) as any
|
||||
);
|
||||
} finally {
|
||||
formState.captchaForSms = null;
|
||||
formState.captchaForEmail = null;
|
||||
}
|
||||
await userStore.forgotPassword(
|
||||
toRaw({
|
||||
type: forgotPasswordType.value,
|
||||
input: formState.input,
|
||||
validateCode: formState.validateCode,
|
||||
password: formState.password,
|
||||
confirmPassword: formState.confirmPassword,
|
||||
}) as any
|
||||
);
|
||||
};
|
||||
|
||||
const handleFinishFailed = (errors: any) => {
|
||||
|
||||
@@ -189,7 +189,6 @@ export default defineComponent({
|
||||
} finally {
|
||||
loading.value = false;
|
||||
formState.captcha = null;
|
||||
formState.smsCaptcha = null;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user