From 9785b96de64be7347d44bf3129f3f63e47b1bac4 Mon Sep 17 00:00:00 2001 From: dyhj625 Date: Tue, 1 Apr 2025 15:32:19 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A9=94=EC=9D=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/main/BoardMain.vue | 2 +- src/views/board/BoardView.vue | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/main/BoardMain.vue b/src/components/main/BoardMain.vue index b887a46..a12160a 100644 --- a/src/components/main/BoardMain.vue +++ b/src/components/main/BoardMain.vue @@ -209,7 +209,7 @@ selectedBoard.value = type; // 상세 페이지 이동 (게시판 타입 전달) const goDetail = (id, boardType) => { -router.push({ name: 'BoardDetail', params: { id, type: boardType } }); +router.push({ name: 'BoardDetail', params: { id }, query: { type: boardType } }); }; // 모달이 열릴 때 데이터 로드 diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index 228901e..53e3fe0 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -258,13 +258,11 @@ // 게시물 상세 데이터 불러오기 const fetchBoardDetails = async () => { const { data } = await axios.get(`board/${currentBoardId.value}`); - console.log(data) if (data?.data) { const boardData = data.data; profileName.value = boardData.author || '익명'; authorId.value = boardData.authorId; type.value = boardData.type === '300103'; - console.log('type 값은 →', type.value, ' / 타입은 →', typeof type.value); boardTitle.value = boardData.title || '제목 없음'; boardContent.value = boardData.content || ''; profileImg.value = boardData.profileImg || '';