This commit is contained in:
dyhj625 2025-03-17 15:00:56 +09:00
parent 3ee5565df6
commit ce1011b96f

View File

@ -193,15 +193,12 @@ function handleDateClick(info) {
updateCalendarEvents(); updateCalendarEvents();
return; return;
} }
//
const type = halfDayType.value const type = halfDayType.value
? (halfDayType.value === "AM" ? "700101" : "700102") ? (halfDayType.value === "AM" ? "700101" : "700102")
: "700103"; : "700103";
selectedDates.value.set(clickedDateStr, type); selectedDates.value.set(clickedDateStr, type);
//
if (halfDayType.value) { if (halfDayType.value) {
halfDayType.value = null; halfDayType.value = null;
} }
@ -570,7 +567,7 @@ watch(() => lastRemainingYear.value, async (newYear, oldYear) => {
await fetchVacationHistory(newYear); await fetchVacationHistory(newYear);
} }
}); });
// `selectedDates` //
watch( watch(
() => Array.from(selectedDates.value.keys()), // () => Array.from(selectedDates.value.keys()), //
(newKeys) => { (newKeys) => {