hookehuyr

fix(打卡页面): 修复选中全部作业时不显示打卡状态的问题

当用户选中全部作业时,跳过打卡状态检查逻辑,避免显示错误的打卡状态
<!--
* @Date: 2025-05-29 15:34:17
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-12-18 09:51:27
* @LastEditTime: 2025-12-18 10:01:20
* @FilePath: /mlaj/src/views/checkin/IndexCheckInPage.vue
* @Description: 文件描述
-->
......@@ -266,6 +266,8 @@ const formatter = (day) => {
return day;
}
// 如果选中的是全部作业,不执行打卡状态检查
if (selectedSubtaskId.value) {
// 检查当前日期是否在签到日期列表中
if (checkin_days && checkin_days.length > 0) {
// 格式化当前日期为YYYY-MM-DD格式,与checkin_days中的格式匹配
......@@ -302,6 +304,7 @@ const formatter = (day) => {
}
}
}
}
// 选中今天的日期
if (dayjs(day.date).isSame(new Date(), 'day')) {
......