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-17 21:22:13 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
307fb4eb0a6de32daf9758b77d2687b7526c2d6d
307fb4eb
1 parent
4a7f10bd
fix(打卡详情页): 计数打卡模式下过滤文本类型附件选项
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
src/views/checkin/CheckinDetailPage.vue
src/views/checkin/CheckinDetailPage.vue
View file @
307fb4e
...
...
@@ -642,6 +642,11 @@ const updateAttachmentTypeOptions = (attachmentType) => {
]
}
// 如果是计数打卡(count),过滤掉文本(text)类型
if (taskType.value === 'count') {
attachmentTypeOptions.value = attachmentTypeOptions.value.filter(option => option.key !== 'text')
}
// 设置默认选中类型(非计数打卡模式下)
if (taskType.value !== 'count' && attachmentTypeOptions.value.length > 0) {
// 如果当前选中的类型不在新的选项中,则重置为第一个
...
...
Please
register
or
login
to post a comment