[as frontend] 공통 수정로직 변경 처리

This commit is contained in:
2026-06-01 18:05:03 +09:00
parent 87f9b90dbf
commit d8d98aee6d
@@ -13,11 +13,11 @@ import { getCookie, setCookie, useAlertStore, useUserStore } from "@/shared/lib"
import { deleteAttachment } from "@/shared/lib/attach";
import { formatFileSize } from "@/shared/lib/file-utils";
import type { AcntgSeMngTreeDto } from "@/entities/acntg";
import { acntgService } from "@/entities/acntg";
import { acntgSeMngService } from "@/entities/acntg";
import type { CklstTreeNode } from "@/entities/cklst";
import { cklstMngService } from "@/entities/cklst";
import type { CnstpSeMngTreeDto } from "@/entities/cnstp";
import { cnstpService } from "@/entities/cnstp";
import { cnstpSeMngService } from "@/entities/cnstp";
import {
esntlAtchFileMngService,
type EsntlAtchFileMngTreeResponseDto,
@@ -834,7 +834,7 @@ function CnfmRegistPage({ initialData }: { initialData?: any } = {}) {
/* ── 공종구분 트리 로드 ── */
const { data: cnstpTree = [] } = useQuery<CnstpSeMngTreeDto[]>({
queryKey: ["cnstpTree"],
queryFn: cnstpService.findTree,
queryFn: () => cnstpSeMngService.findTree(),
staleTime: Infinity,
});
@@ -886,7 +886,7 @@ function CnfmRegistPage({ initialData }: { initialData?: any } = {}) {
/* ── 회계구분 트리 로드 ── */
const { data: acntgTree = [] } = useQuery<AcntgSeMngTreeDto[]>({
queryKey: ["acntgTree"],
queryFn: acntgService.findTree,
queryFn: () => acntgSeMngService.findTree(),
staleTime: Infinity, // 코드 데이터 — 앱 수명 동안 재요청 불필요
});