From 5faced2928a4741d8584bdda4ea6c4019e2eb75f Mon Sep 17 00:00:00 2001 From: ljpark Date: Thu, 29 Jan 2026 09:12:00 +0900 Subject: [PATCH] =?UTF-8?q?fo:=20default=20=EB=85=84=EB=8F=84=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/fo/app/store/common/index.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/fo/app/store/common/index.tsx b/apps/fo/app/store/common/index.tsx index d24305aa9..f71550f1a 100644 --- a/apps/fo/app/store/common/index.tsx +++ b/apps/fo/app/store/common/index.tsx @@ -162,11 +162,11 @@ const selectFacilityPartData: SelectDataType[] = [ const getYearData = () => { const today = new Date(); const year = today.getFullYear(); - // const month = today.getMonth() + 1; - + const month = today.getMonth() + 1; + // 상반기(6월까지)는 2년 전, 하반기는 1년 전부터 시작 - // const startYear = month <= 6 ? (year - 2) : (year - 1); - const startYear = year - 1; + const defaultIdx = month <= 6 ? 2 : 1; + const startYear = year; // 최근 10개년도 제공 (기본값: 첫 번째 항목 선택) return Array.from({ length: 10 }, (_, index) => { @@ -174,7 +174,7 @@ const getYearData = () => { return { text: `${targetYear}년`, val: targetYear.toString(), - selected: index === 0, + selected: index === defaultIdx, }; }); }