feat:使用 router name 进行跳转

This commit is contained in:
YunaiV
2025-10-20 19:14:00 +08:00
parent 2b15a1835d
commit fba34d6ceb
7 changed files with 49 additions and 89 deletions

View File

@@ -197,7 +197,7 @@ async function handleSubmit(values: Recordable<any>) {
await smsResetPassword({ mobile, code, password });
message.success($t('authentication.resetPasswordSuccess'));
// 重置成功后跳转到首页
router.push('/');
await router.push('/');
} catch (error) {
console.error('重置密码失败:', error);
} finally {