refactor(stage-web): merge login redirect judgement statement

This commit is contained in:
RainbowBird
2026-01-27 15:53:02 +08:00
parent c4a0a04945
commit a57b9e5519
+1 -4
View File
@@ -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('/')
}
})