저장후 목록이동처리

This commit is contained in:
2025-08-20 12:59:51 +09:00
parent 8b404648de
commit 7a18924edf
6 changed files with 8 additions and 8 deletions
@@ -131,7 +131,7 @@ function LwpoCodeSection({ upCd }: LwpoCodeSectionProps) {
</LwpoCodeManagementDialog>
</div>
</div>
<div className="card !m-4 h-[calc(100vh-35rem)] overflow-auto !p-0">
<div className="card !m-4 h-[calc(100vh-30rem)] overflow-auto !p-0">
{tableComponent}
</div>
</div>
+1 -1
View File
@@ -109,7 +109,7 @@ function UpCodeSection({ handleSelectedUpCd }: UpCodeSectionProps) {
<Button>등록</Button>
</UpCodeManagementDialog>
</div>
<div className="card !m-4 h-[calc(100vh-35rem)] overflow-auto !p-0">
<div className="card !m-4 h-[calc(100vh-30rem)] overflow-auto !p-0">
{tableComponent}
</div>
</div>
+1 -1
View File
@@ -14,7 +14,7 @@ function CreatePage() {
const { mutateAsync: createRole } = useMutationWrapper({
mutationFn: (data: RoleFormData) => RoleApi.createRole(data),
onSuccess: () => {
alert("등록되었습니다.", router.back);
alert("등록되었습니다.", () => router.push("/role"));
},
});
+2 -2
View File
@@ -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"));
},
});
+1 -1
View File
@@ -13,7 +13,7 @@ function CreatePage() {
const { mutateAsync: createSite } = useMutationWrapper({
mutationFn: (data: SiteFormData) => SiteApi.createSite(data),
onSuccess: () => {
alert("등록되었습니다.", router.back);
alert("등록되었습니다.", () => router.push("/site"));
},
});
+2 -2
View File
@@ -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"));
},
});