diff --git a/public/css/custom.css b/public/css/custom.css index e06cd3e..efb780b 100644 --- a/public/css/custom.css +++ b/public/css/custom.css @@ -1,5 +1,9 @@ /* 여기에 light css 작성 */ +.opacity-50 { + opacity: 0.5; +} + /* board */ .board-content img { max-width: 100% !important; @@ -83,6 +87,7 @@ background: linear-gradient(90deg, orange, #ff8c00); box-shadow: 0 0 20px rgba(255, 140, 0, 1); transform: scale(1.05); + color: #fff; } /* 페이드 인 애니메이션 */ @keyframes fadeIn { diff --git a/src/common/axios-interceptor.js b/src/common/axios-interceptor.js index 68e9bd4..1cd85ef 100644 --- a/src/common/axios-interceptor.js +++ b/src/common/axios-interceptor.js @@ -79,9 +79,10 @@ $api.interceptors.response.use( } // 에러 응답에 커스텀 메시지가 포함되어 있다면 해당 메시지 사용 - if (error.response && error.response.data && error.response.data.message) { - toastStore.onToast(error.response.data.message, 'e'); - } else if (error.response) { + // if (error.response && error.response.data && error.response.data.message) { + // toastStore.onToast(error.response.data.message, 'e'); + // } else if (error.response) { + if (error.response) { // 기본 HTTP 에러 처리 switch (error.response.status) { case 400: diff --git a/src/components/list/ProjectCard.vue b/src/components/list/ProjectCard.vue index b1498d2..bd8b807 100644 --- a/src/components/list/ProjectCard.vue +++ b/src/components/list/ProjectCard.vue @@ -7,7 +7,7 @@
{{ title }}
-

+

diff --git a/src/components/modal/VacationGrantModal.vue b/src/components/modal/VacationGrantModal.vue index ac977fd..06b5e1b 100644 --- a/src/components/modal/VacationGrantModal.vue +++ b/src/components/modal/VacationGrantModal.vue @@ -48,7 +48,6 @@ const fetchSentVacationCount = async () => { availableQuota.value = Math.max(maxQuota - sentCount.value, 0); grantCount.value = availableQuota.value; } catch (error) { - console.error("🚨 연차 전송 기록 조회 실패:", error); availableQuota.value = maxQuota; grantCount.value = maxQuota; } diff --git a/src/components/voteboard/voteCard.vue b/src/components/voteboard/voteCard.vue index edd223a..060e771 100644 --- a/src/components/voteboard/voteCard.vue +++ b/src/components/voteboard/voteCard.vue @@ -1,5 +1,5 @@ diff --git a/src/router/index.js b/src/router/index.js index 0db5705..4461e85 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -8,7 +8,7 @@ const routes = [ path: '/', name: "Home", component: () => import('@v/MainView.vue'), - // meta: { requiresAuth: true } + meta: { requiresAuth: true } }, { path: '/board', @@ -95,11 +95,11 @@ const routes = [ component: () => import('@v/admin/TheAuthorization.vue'), meta: { requiresAuth: true } }, - { path: "/error/400", name: "Error400", component: () => import('@v/error/Error400.vue') }, - { path: "/error/500", name: "Error500", component: () => import('@v/error/Error500.vue') }, + { path: "/error/400", name: "Error400", component: () => import('@v/error/Error400.vue'), meta: {layout: 'NoLayout'} }, + { path: "/error/500", name: "Error500", component: () => import('@v/error/Error500.vue'), meta: {layout: 'NoLayout'} }, { path: "/:anything(.*)", - name: "Error404", component: () => import('@v/error/Error404.vue') + name: "Error404", component: () => import('@v/error/Error404.vue'), meta: {layout: 'NoLayout'} }, ]; diff --git a/src/views/admin/TheAuthorization.vue b/src/views/admin/TheAuthorization.vue index d4da706..f3c9ca9 100644 --- a/src/views/admin/TheAuthorization.vue +++ b/src/views/admin/TheAuthorization.vue @@ -52,7 +52,6 @@ async function fetchUsers() { isAdmin: user.MEMBERROL === 'ROLE_ADMIN', })); } catch (error) { - console.error('사용자 목록을 불러오는 중 오류 발생:', error); toastStore.onToast('사용자 목록을 불러오지 못했습니다.', 'e'); } } @@ -83,7 +82,6 @@ async function toggleAdmin(user) { throw new Error('권한 변경 실패'); } } catch (error) { - console.error('권한 변경 중 오류 발생:', error); toastStore.onToast('권한 변경에 실패했습니다.', 'e'); } } diff --git a/src/views/board/BoardList.vue b/src/views/board/BoardList.vue index 30539ec..cdf86af 100644 --- a/src/views/board/BoardList.vue +++ b/src/views/board/BoardList.vue @@ -224,7 +224,6 @@ const fetchGeneralPosts = async (page = 1) => { }; } } catch (error) { - console.error("데이터 오류:", error); } }; @@ -249,7 +248,6 @@ const fetchNoticePosts = async () => { })); } } catch (error) { - console.error("데이터 오류:", error); } }; diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index 22aaffa..b3cdfe2 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -206,7 +206,6 @@ link.remove(); window.URL.revokeObjectURL(url); } catch (error) { - console.error('파일 다운로드 오류:', error); alert('파일 다운로드 중 오류가 발생했습니다.'); } }; @@ -272,25 +271,21 @@ // 좋아요, 싫어요 const handleUpdateReaction = async ({ boardId, commentId, isLike, isDislike }) => { - try { - await axios.post(`/board/${boardId}/${commentId}/reaction`, { - LOCBRDSEQ: boardId, // 게시글 id - LOCCMTSEQ: commentId, //댓글 id - LOCGOBGOD: isLike ? 'T' : 'F', - LOCGOBBAD: isDislike ? 'T' : 'F', - }); + await axios.post(`/board/${boardId}/${commentId}/reaction`, { + LOCBRDSEQ: boardId, // 게시글 id + LOCCMTSEQ: commentId, //댓글 id + LOCGOBGOD: isLike ? 'T' : 'F', + LOCGOBBAD: isDislike ? 'T' : 'F', + }); - const response = await axios.get(`board/${boardId}`); - const updatedData = response.data.data; + const response = await axios.get(`board/${boardId}`); + const updatedData = response.data.data; - likes.value = updatedData.likeCount; - dislikes.value = updatedData.dislikeCount; + likes.value = updatedData.likeCount; + dislikes.value = updatedData.dislikeCount; - likeClicked.value = isLike; - dislikeClicked.value = isDislike; - } catch (error) { - alert('오류가 발생했습니다.'); - } + likeClicked.value = isLike; + dislikeClicked.value = isDislike; }; // 대댓글 좋아요 @@ -413,24 +408,20 @@ return; } - try { - const response = await axios.post(`board/${currentBoardId.value}/comment`, { - LOCBRDSEQ: currentBoardId.value, - LOCCMTRPY: comment, - LOCCMTPWD: isCheck ? password : '', - LOCCMTPNT: 1, - LOCBRDTYP: isCheck ? '300102' : null, - }); + const response = await axios.post(`board/${currentBoardId.value}/comment`, { + LOCBRDSEQ: currentBoardId.value, + LOCCMTRPY: comment, + LOCCMTPWD: isCheck ? password : '', + LOCCMTPNT: 1, + LOCBRDTYP: isCheck ? '300102' : null, + }); - if (response.status === 200) { - passwordAlert.value = ''; - commentAlert.value = ''; - await fetchComments(); - } else { - alert('댓글 작성을 실패했습니다.'); - } - } catch (error) { - alert('오류가 발생했습니다.'); + if (response.status === 200) { + passwordAlert.value = ''; + commentAlert.value = ''; + await fetchComments(); + } else { + alert('댓글 작성을 실패했습니다.'); } }; diff --git a/src/views/board/BoardWrite.vue b/src/views/board/BoardWrite.vue index 799ad5a..95d8fbd 100644 --- a/src/views/board/BoardWrite.vue +++ b/src/views/board/BoardWrite.vue @@ -129,15 +129,11 @@ const fileError = ref(''); const fetchCategories = async () => { - try { - const response = await axios.get('board/categories'); - categoryList.value = response.data.data; - const freeCategory = categoryList.value.find(category => category.CMNCODNAM === '자유'); - if (freeCategory) { - categoryValue.value = freeCategory.CMNCODVAL; - } - } catch (error) { - console.error('카테고리 불러오기 오류:', error); + const response = await axios.get('board/categories'); + categoryList.value = response.data.data; + const freeCategory = categoryList.value.find(category => category.CMNCODNAM === '자유'); + if (freeCategory) { + categoryValue.value = freeCategory.CMNCODVAL; } }; @@ -243,7 +239,6 @@ toastStore.onToast('게시물이 작성되었습니다.', 's'); goList(); } catch (error) { - console.error(error); toastStore.onToast('게시물 작성 중 오류가 발생했습니다.', 'e'); } }; diff --git a/src/views/error/Error400.vue b/src/views/error/Error400.vue index 9f1c61b..2ebf108 100644 --- a/src/views/error/Error400.vue +++ b/src/views/error/Error400.vue @@ -1,5 +1,5 @@