Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-12-18 10:02:15 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
423be6279fd4554beb81d26fd985c50fa67ee7e1
423be627
1 parent
d3267c49
fix(打卡页面): 修复选中全部作业时不显示打卡状态的问题
当用户选中全部作业时,跳过打卡状态检查逻辑,避免显示错误的打卡状态
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
src/views/checkin/IndexCheckInPage.vue
src/views/checkin/IndexCheckInPage.vue
View file @
423be62
<!--
* @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')) {
...
...
Please
register
or
login
to post a comment