.
This commit is contained in:
parent
3ee5565df6
commit
ce1011b96f
@ -193,15 +193,12 @@ function handleDateClick(info) {
|
||||
updateCalendarEvents();
|
||||
return;
|
||||
}
|
||||
|
||||
// 반차 추가될 때만 반차 버튼 해제
|
||||
const type = halfDayType.value
|
||||
? (halfDayType.value === "AM" ? "700101" : "700102")
|
||||
: "700103";
|
||||
|
||||
selectedDates.value.set(clickedDateStr, type);
|
||||
|
||||
// 새로운 반차를 추가했을 때만 반차 버튼 초기화
|
||||
if (halfDayType.value) {
|
||||
halfDayType.value = null;
|
||||
}
|
||||
@ -570,7 +567,7 @@ watch(() => lastRemainingYear.value, async (newYear, oldYear) => {
|
||||
await fetchVacationHistory(newYear);
|
||||
}
|
||||
});
|
||||
// `selectedDates` 변경 시 반차 버튼 초기화
|
||||
// 새로운 휴가 추가 시 반차 버튼 초기화
|
||||
watch(
|
||||
() => Array.from(selectedDates.value.keys()), // 선택된 날짜 리스트 감시
|
||||
(newKeys) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user