Merge branch 'iipbs/wr/dev' into iipbs/sn/dev

This commit is contained in:
ljpark
2025-11-10 13:26:44 +09:00
2 changed files with 12 additions and 6 deletions
@@ -77,7 +77,7 @@ export default function CoMatRvw() {
{} as DmdCoReqType {} as DmdCoReqType
); );
const [selectionVersion, setSelectionVersion] = useState(0); const [selectionVersion, setSelectionVersion] = useState(0);
const bottomRef = useRef<HTMLDivElement | null>(null);
//수요 매칭 검색 //수요 매칭 검색
@@ -111,6 +111,7 @@ export default function CoMatRvw() {
if (coMatRvwRes && coMatRvwRes[index]) { if (coMatRvwRes && coMatRvwRes[index]) {
setSelectData(coMatRvwRes[index]); setSelectData(coMatRvwRes[index]);
setSelectionVersion((v) => v + 1); // 행을 클릭할 때마다 버전을 1씩 증가 setSelectionVersion((v) => v + 1); // 행을 클릭할 때마다 버전을 1씩 증가
bottomRef.current?.scrollIntoView({ behavior: "smooth" });
} }
}; };
const useUsgCdWatch = useWatch({ control: form.control, name: "useUsgCd" }); const useUsgCdWatch = useWatch({ control: form.control, name: "useUsgCd" });
@@ -294,12 +295,16 @@ export default function CoMatRvw() {
setPageNatiion(val); setPageNatiion(val);
}} }}
></UiTable> ></UiTable>
<div ref={bottomRef} />
</ListDiv> </ListDiv>
<hr /> <br /><hr />
<br />
{/* <ScrollArea className="h-[49vh]"> */} {/* <ScrollArea className="h-[49vh]"> */}
<ListDiv> <ListDiv>
<h3 className="mt-4 ml-2 text-2xl font-medium text-label"> <div className="card-header flex items-center justify-between">
수요신청 상세현황 <h3 className="text-2xl font-medium text-label">수요신청 상세현황</h3>
</div>
<h3 className="mt-4 ml-2 text-2xl font-medium text-label" >
</h3> </h3>
<Form {...form}> <Form {...form}>
<div className="grid grid-cols-12 gap-4 ml-4 mr-4"> <div className="grid grid-cols-12 gap-4 ml-4 mr-4">
@@ -43,7 +43,8 @@ const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
console.error("Token refresh failed:", refreshError); console.error("Token refresh failed:", refreshError);
setUserInfo(null); setUserInfo(null);
const hostname = window.location.hostname; // const hostname = window.location.hostname;
const hostname = location.hostname;
// 개발 환경에서는 localhost 도메인 사용 // 개발 환경에서는 localhost 도메인 사용
if (hostname === "localhost" || hostname === "127.0.0.1" || hostname === "con.mind-one.co.kr") if (hostname === "localhost" || hostname === "127.0.0.1" || hostname === "con.mind-one.co.kr")
@@ -51,7 +52,7 @@ const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
// 운영 환경에서는 서브도메인을 포함한 최상위 도메인 사용 // 운영 환경에서는 서브도메인을 포함한 최상위 도메인 사용
// router.push는 같은 Next.js 앱 내에서만 작동하므로 다른 앱으로 이동할 때는 window.location.href 사용 // router.push는 같은 Next.js 앱 내에서만 작동하므로 다른 앱으로 이동할 때는 window.location.href 사용
if (hostname.includes("hasuon.or.kr")) window.location.href = LOGIN_PAGE_URL; // 세션 만료 시 CM 로그인 페이지로 리다이렉트 if (hostname.includes("hasuon.or.kr")) location.href = LOGIN_PAGE_URL; // 세션 만료 시 CM 로그인 페이지로 리다이렉트
} }
} }
})(); })();