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-06-13 16:26:48 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1df8890996b6b72c06d3a09eacc7964b98ba911f
1df88909
1 parent
c641c9db
fix(打卡): 修复选择打卡类型时的逻辑错误
将设置选中打卡类型的逻辑移到else块中,避免在提交后重复设置
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
src/components/ui/CheckInDialog.vue
src/views/HomePage.vue
src/views/study/StudyCoursePage.vue
src/views/study/StudyDetailPage.vue
src/components/ui/CheckInDialog.vue
View file @
1df8890
...
...
@@ -106,8 +106,9 @@ const handleCheckInSelect = (type) => {
id: type.id
}
})
}
}
else {
selectedCheckIn.value = type;
}
}
const handleCheckInSubmit = async () => {
...
...
src/views/HomePage.vue
View file @
1df8890
<!--
* @Date: 2025-03-20 19:55:21
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-06-1
1 17:10:09
* @LastEditTime: 2025-06-1
3 16:26:25
* @FilePath: /mlaj/src/views/HomePage.vue
* @Description: 美乐爱觉教育首页组件
*
...
...
@@ -693,9 +693,10 @@ const handleCheckInSelect = (checkInType) => {
id: checkInType.id,
},
})
}
}
else {
selectedCheckIn.value = checkInType // 更新选中的打卡类型
checkInContent.value = '' // 清空打卡内容
}
}
// 打卡功能:处理打卡提交
...
...
src/views/study/StudyCoursePage.vue
View file @
1df8890
...
...
@@ -394,8 +394,9 @@ const handleCheckInSelect = (type) => {
});
showCheckInDialog.value = false;
return;
}
}
else {
selectedCheckIn.value = type;
}
};
// 处理打卡提交
...
...
src/views/study/StudyDetailPage.vue
View file @
1df8890
...
...
@@ -982,8 +982,9 @@ const handleCheckInSelect = (type) => {
});
showCheckInDialog.value = false;
return;
}
}
else {
selectedCheckIn.value = type;
}
};
// 处理打卡提交
...
...
Please
register
or
login
to post a comment