fix 修复bug
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user