From 387362d42bd510b4f63404a692949b27a44136cf Mon Sep 17 00:00:00 2001 From: bicochan Date: Tue, 29 Jul 2025 11:28:48 +0900 Subject: [PATCH] =?UTF-8?q?[apps/cs]=20feat:=20=EA=B2=8C=EC=8B=9C=EA=B8=80?= =?UTF-8?q?=20=EB=82=B4=20=EB=AA=A9=EB=A1=9D=20=EB=B2=84=ED=8A=BC=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/cs/src/widgets/post/ui/post-action.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/cs/src/widgets/post/ui/post-action.tsx b/apps/cs/src/widgets/post/ui/post-action.tsx index 421cb4542..860d8dad8 100644 --- a/apps/cs/src/widgets/post/ui/post-action.tsx +++ b/apps/cs/src/widgets/post/ui/post-action.tsx @@ -25,6 +25,7 @@ function PostAction({ children, handleDelete }: PostActionProps) { const { prompt } = useSelectPrompt(selectData); const bbsInfo = useMenuStore((state) => state.bbsInfo); const userInfo = useUserStore((state) => state.userInfo); + const postPageLink = `/bbs/${bbsInfo?.bbsTypeCd.toLowerCase()}/${bbsInfo?.bbsId}`; const onDelete = async () => { const { resolved, value } = await prompt("삭제 사유를 입력해주세요."); @@ -64,7 +65,7 @@ function PostAction({ children, handleDelete }: PostActionProps) { size="lg" color="white" type="button" - onClick={() => router.back()} + onClick={() => router.push(postPageLink)} > 목록