fix: App.js/applyTemplate -> default설정

This commit is contained in:
djaco
2025-07-23 18:19:01 +09:00
parent 76242cdd14
commit 5acb83adf2
2 changed files with 4 additions and 2 deletions

View File

@@ -266,10 +266,10 @@ function AppBase(props) {
// 앱 초기화가 완료된 후 템플릿 설정 적용 // 앱 초기화가 완료된 후 템플릿 설정 적용
if (httpHeaderRef.current) { if (httpHeaderRef.current) {
const timer = setTimeout(() => { const timer = setTimeout(() => {
applyTemplate("eic-gb"); // eic 서버 + GB 국가 // applyTemplate("eic-gb"); // eic 서버 + GB 국가
// applyTemplate("aic-us"); // aic 서버 + US 국가 // applyTemplate("aic-us"); // aic 서버 + US 국가
// applyTemplate("ruc-ru"); // ruc 서버 + RU 국가 // applyTemplate("ruc-ru"); // ruc 서버 + RU 국가
// applyTemplate("default"); // 기본 설정 (system) applyTemplate("default"); // 기본 설정 (system)
}, 2000); // 2초 후 적용 }, 2000); // 2초 후 적용
return () => clearTimeout(timer); return () => clearTimeout(timer);

View File

@@ -53,6 +53,7 @@ export default function TermsOfService({ title, cbScrollTo }) {
const { popupVisible } = useSelector((state) => state.common?.popup); const { popupVisible } = useSelector((state) => state.common?.popup);
const { optionalTermsAgree } = useSelector((state) => state.common); const { optionalTermsAgree } = useSelector((state) => state.common);
console.log("[TermsOfService] 현재 optionalTermsAgree 상태:", optionalTermsAgree);
const termsData = useSelector((state) => state.home.termsData); const termsData = useSelector((state) => state.home.termsData);
const empTermsData = useSelector((state) => state.emp.empTermsData); const empTermsData = useSelector((state) => state.emp.empTermsData);
const webOSVersion = useSelector( const webOSVersion = useSelector(
@@ -78,6 +79,7 @@ export default function TermsOfService({ title, cbScrollTo }) {
// ✅ fetchCurrentUserHomeTerms 호출 제거 - TV 환경에서 서버 동기화 지연 방지 // ✅ fetchCurrentUserHomeTerms 호출 제거 - TV 환경에서 서버 동기화 지연 방지
useEffect(() => { useEffect(() => {
console.log("[TermsOfService] optionalTermsAgree 상태 변경:", optionalTermsAgree);
setLocalOptionalTermsAgree(optionalTermsAgree); setLocalOptionalTermsAgree(optionalTermsAgree);
setIsOptionalChecked(optionalTermsAgree); setIsOptionalChecked(optionalTermsAgree);
}, [optionalTermsAgree]); }, [optionalTermsAgree]);