fix 修复bug

This commit is contained in:
Daniel
2026-04-28 19:40:02 +08:00
parent c234fe64d6
commit 0134a5ef64
11 changed files with 720 additions and 14 deletions

View File

@@ -108,7 +108,12 @@ if (registerBtn) {
}
}
setStatus("注册成功,正在跳转...");
window.location.href = nextPath();
const redirectTo = (data.redirect_to || "").trim();
if (redirectTo && redirectTo.startsWith("/")) {
window.location.href = redirectTo;
} else {
window.location.href = nextPath();
}
} catch (e) {
setStatus(e.message || "请求异常", true);
await refreshChallenge();