메인 수정

This commit is contained in:
dyhj625 2025-04-01 15:32:19 +09:00
parent 2cb2c81f84
commit 9785b96de6
2 changed files with 1 additions and 3 deletions

View File

@ -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 } });
};
//

View File

@ -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 || '';