refactor(stage-web): merge login redirect judgement statement
This commit is contained in:
@@ -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('/')
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user