From 7a18924edf5e1d44e4ad5e21460d90a87cd45114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A7=80=EC=B2=A0?= Date: Wed, 20 Aug 2025 12:59:51 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A0=80=EC=9E=A5=ED=9B=84=20=EB=AA=A9?= =?UTF-8?q?=EB=A1=9D=EC=9D=B4=EB=8F=99=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/cs/src/pages/code/ui/lwpocode-section.tsx | 2 +- apps/cs/src/pages/code/ui/upcode-section.tsx | 2 +- apps/cs/src/pages/role/ui/create-page.tsx | 2 +- apps/cs/src/pages/role/ui/modify-page.tsx | 4 ++-- apps/cs/src/pages/site/ui/create-page.tsx | 2 +- apps/cs/src/pages/site/ui/modify-page.tsx | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/cs/src/pages/code/ui/lwpocode-section.tsx b/apps/cs/src/pages/code/ui/lwpocode-section.tsx index 9692c842d..61726a6b8 100644 --- a/apps/cs/src/pages/code/ui/lwpocode-section.tsx +++ b/apps/cs/src/pages/code/ui/lwpocode-section.tsx @@ -131,7 +131,7 @@ function LwpoCodeSection({ upCd }: LwpoCodeSectionProps) { -
+
{tableComponent}
diff --git a/apps/cs/src/pages/code/ui/upcode-section.tsx b/apps/cs/src/pages/code/ui/upcode-section.tsx index a9e5f6de8..ef89d2d3a 100644 --- a/apps/cs/src/pages/code/ui/upcode-section.tsx +++ b/apps/cs/src/pages/code/ui/upcode-section.tsx @@ -109,7 +109,7 @@ function UpCodeSection({ handleSelectedUpCd }: UpCodeSectionProps) { -
+
{tableComponent}
diff --git a/apps/cs/src/pages/role/ui/create-page.tsx b/apps/cs/src/pages/role/ui/create-page.tsx index 06722a5a4..515f64cea 100644 --- a/apps/cs/src/pages/role/ui/create-page.tsx +++ b/apps/cs/src/pages/role/ui/create-page.tsx @@ -14,7 +14,7 @@ function CreatePage() { const { mutateAsync: createRole } = useMutationWrapper({ mutationFn: (data: RoleFormData) => RoleApi.createRole(data), onSuccess: () => { - alert("등록되었습니다.", router.back); + alert("등록되었습니다.", () => router.push("/role")); }, }); diff --git a/apps/cs/src/pages/role/ui/modify-page.tsx b/apps/cs/src/pages/role/ui/modify-page.tsx index 4042c335a..37f00836f 100644 --- a/apps/cs/src/pages/role/ui/modify-page.tsx +++ b/apps/cs/src/pages/role/ui/modify-page.tsx @@ -20,14 +20,14 @@ function ModifyPage({ roleId }: { roleId: string }) { const { mutateAsync: updateRole } = useMutationWrapper({ mutationFn: (data: RoleFormData) => RoleApi.updateRole(roleId, data), onSuccess: () => { - alert("수정되었습니다.", router.back); + alert("수정되었습니다.", () => router.push("/role")); }, }); const { mutateAsync: deleteRole } = useMutationWrapper({ mutationFn: () => RoleApi.deleteRole(roleId), onSuccess: () => { - alert("삭제되었습니다.", router.back); + alert("삭제되었습니다.", () => router.push("/role")); }, }); diff --git a/apps/cs/src/pages/site/ui/create-page.tsx b/apps/cs/src/pages/site/ui/create-page.tsx index 070d53a27..95fa67a22 100644 --- a/apps/cs/src/pages/site/ui/create-page.tsx +++ b/apps/cs/src/pages/site/ui/create-page.tsx @@ -13,7 +13,7 @@ function CreatePage() { const { mutateAsync: createSite } = useMutationWrapper({ mutationFn: (data: SiteFormData) => SiteApi.createSite(data), onSuccess: () => { - alert("등록되었습니다.", router.back); + alert("등록되었습니다.", () => router.push("/site")); }, }); diff --git a/apps/cs/src/pages/site/ui/modify-page.tsx b/apps/cs/src/pages/site/ui/modify-page.tsx index 87bf2a9a5..62b201ec2 100644 --- a/apps/cs/src/pages/site/ui/modify-page.tsx +++ b/apps/cs/src/pages/site/ui/modify-page.tsx @@ -41,14 +41,14 @@ function ModifyPage({ siteId }: { siteId: string }) { queryClient.invalidateQueries({ queryKey: [ENDPOINT.CMS_SERVICE.SITES], }); - alert("수정되었습니다.", router.back); + alert("수정되었습니다.", () => router.push("/site")); }, }); const { mutateAsync: deleteSite } = useMutationWrapper({ mutationFn: () => SiteApi.deleteSite(siteId), onSuccess: () => { - alert("삭제되었습니다.", router.back); + alert("삭제되었습니다.", () => router.push("/site")); }, });