From 038570527be9d817fcb9a3fdd52d92a09f539841 Mon Sep 17 00:00:00 2001 From: minwucho Date: Wed, 14 Aug 2024 10:04:29 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AD=EC=A0=9C=20=ED=9B=84=20=EB=90=98?= =?UTF-8?q?=EB=8F=8C=EC=95=84=EA=B0=80=EA=B8=B0=ED=95=A0=EB=96=84=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C=20=EC=A0=81=EC=9A=A9=EC=95=88=EB=90=98?= =?UTF-8?q?=EB=8A=94=EA=B1=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/FreeboardDetailPage/FreeboardDetailPage.jsx | 2 +- frontend/src/pages/NoticeDetailPage/NoticeDetailPage.jsx | 2 +- frontend/src/pages/QuestionDetailPage/QuestionDetailPage.jsx | 2 +- frontend/src/pages/QuizsetDetailPage/QuizsetDetailPage.jsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/FreeboardDetailPage/FreeboardDetailPage.jsx b/frontend/src/pages/FreeboardDetailPage/FreeboardDetailPage.jsx index c7ad5e8..6a47143 100644 --- a/frontend/src/pages/FreeboardDetailPage/FreeboardDetailPage.jsx +++ b/frontend/src/pages/FreeboardDetailPage/FreeboardDetailPage.jsx @@ -13,7 +13,7 @@ export default function FreeboardDetailPage() { const handleDelete = async () => { await freeboardDelete(freeboardId); - navigate('..'); + navigate('..', { replace: true }); }; return ( diff --git a/frontend/src/pages/NoticeDetailPage/NoticeDetailPage.jsx b/frontend/src/pages/NoticeDetailPage/NoticeDetailPage.jsx index 6d91d0d..9e54461 100644 --- a/frontend/src/pages/NoticeDetailPage/NoticeDetailPage.jsx +++ b/frontend/src/pages/NoticeDetailPage/NoticeDetailPage.jsx @@ -13,7 +13,7 @@ export default function NoticeDetailPage() { const handleDelete = async () => { await noticeDelete(noticeId); - navigate('..'); + navigate('..', { replace: true }); }; return ( diff --git a/frontend/src/pages/QuestionDetailPage/QuestionDetailPage.jsx b/frontend/src/pages/QuestionDetailPage/QuestionDetailPage.jsx index 29878bd..4111642 100644 --- a/frontend/src/pages/QuestionDetailPage/QuestionDetailPage.jsx +++ b/frontend/src/pages/QuestionDetailPage/QuestionDetailPage.jsx @@ -13,7 +13,7 @@ export default function QuestionDetailPage() { const handleDelete = async () => { await qnaDelete(qnaId); - navigate('..'); + navigate('..', { replace: true }); }; return ( diff --git a/frontend/src/pages/QuizsetDetailPage/QuizsetDetailPage.jsx b/frontend/src/pages/QuizsetDetailPage/QuizsetDetailPage.jsx index 61512ee..5070671 100644 --- a/frontend/src/pages/QuizsetDetailPage/QuizsetDetailPage.jsx +++ b/frontend/src/pages/QuizsetDetailPage/QuizsetDetailPage.jsx @@ -15,7 +15,7 @@ export default function QuizsetDetailPage() { }; const handleDelete = async () => { await quizsetDelete(quizsetId); - navigate('..'); + navigate('..', { replace: true }); }; return (