게시글 상세 화면 로딩 시 스크롤 매위로
This commit is contained in:
parent
19c574cf9d
commit
0a3f639d06
@ -906,9 +906,14 @@
|
||||
|
||||
const formattedBoardDate = computed(() => formattedDate(date.value));
|
||||
|
||||
const scrollToTop = () => {
|
||||
window.scrollTo({ top: 0 });
|
||||
};
|
||||
|
||||
// 컴포넌트 마운트 시 데이터 로드
|
||||
onMounted(() => {
|
||||
fetchBoardDetails();
|
||||
fetchComments();
|
||||
scrollToTop();
|
||||
});
|
||||
</script>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user