fix(release): close fixed-code mobile auth gaps

This commit is contained in:
key
2026-07-29 11:59:30 +08:00
parent 3c92edd23d
commit 70e5516ff3
21 changed files with 546 additions and 65 deletions
+9 -1
View File
@@ -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();
}
});