저장후 목록이동처리
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -14,7 +14,7 @@ function CreatePage() {
|
||||
const { mutateAsync: createRole } = useMutationWrapper({
|
||||
mutationFn: (data: RoleFormData) => RoleApi.createRole(data),
|
||||
onSuccess: () => {
|
||||
alert("등록되었습니다.", router.back);
|
||||
alert("등록되었습니다.", () => router.push("/role"));
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -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"));
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ function CreatePage() {
|
||||
const { mutateAsync: createSite } = useMutationWrapper({
|
||||
mutationFn: (data: SiteFormData) => SiteApi.createSite(data),
|
||||
onSuccess: () => {
|
||||
alert("등록되었습니다.", router.back);
|
||||
alert("등록되었습니다.", () => router.push("/site"));
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -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"));
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user