修复签到日历人数显示

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-06-16 20:56:50 +08:00
co-authored by Claude
parent 8690265fa0
commit 2840aca69b
4 changed files with 41 additions and 3 deletions
@@ -14,6 +14,7 @@ const calendarMonth = ref(new Date())
const dailyCounts = ref<Record<string, number>>({})
const selectedDate = ref('')
const weekdays = ['日', '一', '二', '三', '四', '五', '六']
const todayDate = formatDateKey(new Date())
const calendarDays = computed(() => monthDays(calendarMonth.value))
@@ -150,7 +151,7 @@ onMounted(() => {
v-else
type="button"
class="signed-calendar-day"
:class="{ selected: selectedDate === day, 'has-signs': dailyCounts[day] }"
:class="{ selected: selectedDate === day, today: todayDate === day, 'has-signs': dailyCounts[day] }"
@click="selectDate(day)"
>
<span class="signed-calendar-date">{{ Number(day.slice(8, 10)) }}</span>