fix(release): close fixed-code mobile auth gaps
This commit is contained in:
@@ -240,6 +240,14 @@ const goAfterLogin = async () => {
|
||||
goToMobileTarget(await nextUserRouteAfterLogin(redirect));
|
||||
};
|
||||
|
||||
const resumeAfterLogin = async () => {
|
||||
try {
|
||||
await goAfterLogin();
|
||||
} catch (error) {
|
||||
message.value = error instanceof Error ? error.message : '组织身份加载失败,请重试';
|
||||
}
|
||||
};
|
||||
|
||||
const sendCode = async () => {
|
||||
if (sending.value || countdown.value > 0) return;
|
||||
if (!ensureLegalConsent()) return;
|
||||
@@ -302,7 +310,7 @@ const login = async () => {
|
||||
onShow(() => {
|
||||
resetPageScroll();
|
||||
if (isLoggedIn()) {
|
||||
void goAfterLogin();
|
||||
void resumeAfterLogin();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user