We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be99927 commit 47780e4Copy full SHA for 47780e4
1 file changed
src/App.vue
@@ -23,12 +23,9 @@ const route = useRoute()
23
const hideLayout = computed(() => route.meta.hideLayout === true)
24
25
const auth = useAuthStore()
26
+// onMounted 시 유저 정보 가져오기
27
onMounted(async () => {
- const params = new URLSearchParams(window.location.search)
28
- if (params.get('socialLogin') === 'true' || !auth.isLoggedIn) {
29
- await auth.fetchUser()
30
- router.replace(route.path) // ?socialLogin 플래그 제거
31
- }
+ await auth.fetchUser()
32
console.log('🔐 현재 로그인 유저 정보:', auth.user)
33
})
34
</script>
0 commit comments