게시글 상세 화면 로딩 시 스크롤 매위로

This commit is contained in:
nevermoregb 2025-04-07 11:33:36 +09:00
parent 19c574cf9d
commit 0a3f639d06

View File

@ -906,9 +906,14 @@
const formattedBoardDate = computed(() => formattedDate(date.value));
const scrollToTop = () => {
window.scrollTo({ top: 0 });
};
//
onMounted(() => {
fetchBoardDetails();
fetchComments();
scrollToTop();
});
</script>