From 9b0c02f35fcdaf5863978e3f81c5854da7886977 Mon Sep 17 00:00:00 2001 From: jhynsoo Date: Thu, 23 May 2024 10:23:57 +0900 Subject: [PATCH] Refactor: Remove unnecessary console.log --- src/api/member.js | 2 -- src/components/AppHeader.vue | 5 ++--- src/components/article/ArticleList.vue | 18 +++++++----------- src/components/article/CommentForm.vue | 1 - src/components/search/SearchBar.vue | 6 ------ src/components/users/UserRegister.vue | 12 +++++------- src/router/index.js | 22 +++++----------------- 7 files changed, 19 insertions(+), 47 deletions(-) diff --git a/src/api/member.js b/src/api/member.js index 1a87743..e66eb0b 100644 --- a/src/api/member.js +++ b/src/api/member.js @@ -11,8 +11,6 @@ function findByToken(userid, token) { function tokenRegeneration(userid, token) { localAxios.defaults.headers['refreshToken'] = token; - console.log(userid); - console.log(token); return localAxios.post(`/member/refresh/${userid}`); } diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue index c8c5310..a8df984 100644 --- a/src/components/AppHeader.vue +++ b/src/components/AppHeader.vue @@ -7,11 +7,10 @@ const memberStore = useMemberStore(); const { userLogout } = memberStore; const { isLogin } = storeToRefs(memberStore); -console.log('AppHeader.isLogin', isLogin.value); -const logout = () => { +function logout() { userLogout(); -}; +}