From 0a3f639d06ad162e344f09d41859509883d12a4d Mon Sep 17 00:00:00 2001 From: nevermoregb Date: Mon, 7 Apr 2025 11:33:36 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=EA=B8=80=20=EC=83=81?= =?UTF-8?q?=EC=84=B8=20=ED=99=94=EB=A9=B4=20=EB=A1=9C=EB=94=A9=20=EC=8B=9C?= =?UTF-8?q?=20=EC=8A=A4=ED=81=AC=EB=A1=A4=20=EB=A7=A4=EC=9C=84=EB=A1=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/board/BoardView.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index 0b65808..eaaa5f7 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -906,9 +906,14 @@ const formattedBoardDate = computed(() => formattedDate(date.value)); + const scrollToTop = () => { + window.scrollTo({ top: 0 }); + }; + // 컴포넌트 마운트 시 데이터 로드 onMounted(() => { fetchBoardDetails(); fetchComments(); + scrollToTop(); });