chore: 新网已支持

This commit is contained in:
xiaojunnuo
2025-09-24 00:55:31 +08:00
parent 1c15beadc7
commit 48f4298a8d
6 changed files with 93 additions and 77 deletions
@@ -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;
}
};