From c80af1efcb71f32dc524bad99e152429abe40157 Mon Sep 17 00:00:00 2001 From: ljpark Date: Mon, 10 Nov 2025 11:10:00 +0900 Subject: [PATCH] =?UTF-8?q?wr:=20=EC=88=98=EC=9A=94=EB=A7=A4=EC=B9=AD=20?= =?UTF-8?q?=EC=9E=90=EB=8F=99=20=EC=8A=A4=ED=81=AC=EB=A1=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../(with-layout)/matMng/coMat/coMatRvw/page.tsx | 13 +++++++++---- apps/wr/src/entities/auth/lib/auth-wrapper.tsx | 5 +++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/apps/wr/app/(with-layout)/matMng/coMat/coMatRvw/page.tsx b/apps/wr/app/(with-layout)/matMng/coMat/coMatRvw/page.tsx index 472b8222f..d4e16b676 100644 --- a/apps/wr/app/(with-layout)/matMng/coMat/coMatRvw/page.tsx +++ b/apps/wr/app/(with-layout)/matMng/coMat/coMatRvw/page.tsx @@ -77,7 +77,7 @@ export default function CoMatRvw() { {} as DmdCoReqType ); const [selectionVersion, setSelectionVersion] = useState(0); - + const bottomRef = useRef(null); //수요 매칭 검색 @@ -111,6 +111,7 @@ export default function CoMatRvw() { if (coMatRvwRes && coMatRvwRes[index]) { setSelectData(coMatRvwRes[index]); setSelectionVersion((v) => v + 1); // 행을 클릭할 때마다 버전을 1씩 증가 + bottomRef.current?.scrollIntoView({ behavior: "smooth" }); } }; const useUsgCdWatch = useWatch({ control: form.control, name: "useUsgCd" }); @@ -294,12 +295,16 @@ export default function CoMatRvw() { setPageNatiion(val); }} > +
-
+

+
{/* */} -

- 수요신청 상세현황 +
+

수요신청 상세현황

+
+

diff --git a/apps/wr/src/entities/auth/lib/auth-wrapper.tsx b/apps/wr/src/entities/auth/lib/auth-wrapper.tsx index dcc6e81cd..fdb88711b 100644 --- a/apps/wr/src/entities/auth/lib/auth-wrapper.tsx +++ b/apps/wr/src/entities/auth/lib/auth-wrapper.tsx @@ -43,7 +43,8 @@ const AuthWrapper = ({ children }: { children: React.ReactNode }) => { console.error("Token refresh failed:", refreshError); setUserInfo(null); - const hostname = window.location.hostname; + // const hostname = window.location.hostname; + const hostname = location.hostname; // 개발 환경에서는 localhost 도메인 사용 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 사용 - 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 로그인 페이지로 리다이렉트 } } })();