fix: 修正签到日期格式化逻辑,确保使用正确的日期字段

This commit is contained in:
2026-01-18 16:42:27 +07:00
parent 35efe8e178
commit 3aeb24335d

View File

@@ -19,7 +19,7 @@ const { data: today_checkin } = await safeClient(client.api.checkIns.today.get({
const checkedInDates = computed(() => { const checkedInDates = computed(() => {
if (!data.value?.data) if (!data.value?.data)
return new Set<string>(); return new Set<string>();
return new Set(data.value.data.map(item => dayjs(item.checkInAt).format("YYYY-MM-DD"))); return new Set(data.value.data.map(item => dayjs(item.checkInLocalDate).format("YYYY-MM-DD")));
}); });
function isCheckedIn(day: number) { function isCheckedIn(day: number) {