From a57b9e551900a59f12c80d74bafa04534c65c15a Mon Sep 17 00:00:00 2001 From: RainbowBird Date: Tue, 27 Jan 2026 15:53:02 +0800 Subject: [PATCH] refactor(stage-web): merge login redirect judgement statement --- apps/stage-web/src/pages/auth/login.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/stage-web/src/pages/auth/login.vue b/apps/stage-web/src/pages/auth/login.vue index 603c903bc..72bba2e2f 100644 --- a/apps/stage-web/src/pages/auth/login.vue +++ b/apps/stage-web/src/pages/auth/login.vue @@ -34,10 +34,7 @@ async function handleSignIn(provider: OAuthProvider) { onMounted(() => { fetchSession() .then((authenticated) => { - if (authenticated) { - router.replace('/') - } - else if (!isDesktop.value) { + if (authenticated || !isDesktop.value) { router.replace('/') } })