From 2f25ff279a55b21c61630e5179cd3e3e8536ce1d Mon Sep 17 00:00:00 2001 From: sandygudie Date: Fri, 22 Mar 2024 09:56:10 +0100 Subject: [PATCH] fixs --- client/src/views/HomeView.vue | 4 ++-- client/src/views/LoginView.vue | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/client/src/views/HomeView.vue b/client/src/views/HomeView.vue index d6b4bcf..f049adf 100644 --- a/client/src/views/HomeView.vue +++ b/client/src/views/HomeView.vue @@ -48,10 +48,10 @@ onMounted(async () => { isLoading.value = true let existingUserId = getUserId() if (!existingUserId) { - // return router.push('/login') + return router.push('/login') } userId = existingUserId -console.log(userId) + try { const profileResponse = await getProfile(userId) diff --git a/client/src/views/LoginView.vue b/client/src/views/LoginView.vue index bd33188..31c41ea 100644 --- a/client/src/views/LoginView.vue +++ b/client/src/views/LoginView.vue @@ -23,10 +23,9 @@ const login = () => { isLoading.value = true let result = await googleLogin({ token: response.access_token }) if (result.success) { - console.log(result) setToken(result.accessToken) setUserID(result.userID) - // return window.location.replace('/') + return window.location.replace('/') } } catch (err: any) { toast.error(err.toString(), { @@ -62,7 +61,7 @@ const login = () => { devlink logo