Skip to content

Commit

Permalink
O2F-1038 [Feat] 구글 로그인 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayEnergy committed Dec 27, 2023
1 parent bc264f3 commit abb2a80
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/views/LoginView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<img class="oauth-kakao" src="@/assets/images/kakao-login.png" @click="redirectToKakaoLogin"/>
</div>
<div class="oauth-google-wrapper">
<img class="oauth-google" src="@/assets/images/google-login.png" />
<img class="oauth-google" src="@/assets/images/google-login.png" @click="redirectToGoogleLogin"/>
</div>
</div>
</div>
Expand Down Expand Up @@ -406,9 +406,13 @@
export default {
methods: {
redirectToKakaoLogin() {
const kakaoLoginUrl = import.meta.env.VITE_LOGIN_URL;
const kakaoLoginUrl = import.meta.env.VITE_KAKAO_LOGIN_URL;
window.location.href = kakaoLoginUrl;
},
redirectToGoogleLogin() {
const googleLoginUrl = import.meta.env.VITE_GOOGLE_LOGIN_URL;
window.location.href = googleLoginUrl;
},
},
};
</script>
Expand Down

0 comments on commit abb2a80

Please sign in to comment.