페이지네이션 완료

This commit is contained in:
kimdaae328 2025-02-18 14:31:20 +09:00
parent 6890269faa
commit 656b7f92ca

View File

@ -221,12 +221,12 @@ const handleUpdateReaction = async ({ boardId, commentId, isLike, isDislike }) =
}; };
// //
const fetchComments = async (pageNum = 1) => { const fetchComments = async (page = 1) => {
try { try {
const response = await axios.get(`board/${currentBoardId.value}/comments`, { const response = await axios.get(`board/${currentBoardId.value}/comments`, {
params: { params: {
LOCBRDSEQ: currentBoardId.value, LOCBRDSEQ: currentBoardId.value,
pageNum: pageNum page
} }
}); });
console.log("목록 API 응답 데이터:", response.data); console.log("목록 API 응답 데이터:", response.data);